From 0a9514228f7d3bc94519af2f09ed507608ca0eee Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 12 Aug 2022 17:42:40 -0700 Subject: [PATCH] setup: Fix issue with immediate refresh after installation When refresh_page_sec is set to zero (immediate refresh), the template does not treat that as needing refresh at all. Fix this by distinguishing zero from None. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/templates/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/templates/base.html b/plinth/templates/base.html index 7372d8f22..b431ca286 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -61,7 +61,7 @@ - {% if refresh_page_sec %} + {% if refresh_page_sec is not None %} @@ -72,7 +72,7 @@