From c608219795d17879d7768c2d790a273ce2778c61 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 31 Aug 2022 23:51:13 -0700 Subject: [PATCH] gitweb: Fix issue with page not refreshing during uninstall Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/gitweb/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plinth/modules/gitweb/views.py b/plinth/modules/gitweb/views.py index a963fcb8d..b6dbb088f 100644 --- a/plinth/modules/gitweb/views.py +++ b/plinth/modules/gitweb/views.py @@ -33,7 +33,9 @@ class GitwebAppView(views.AppView): repos = gitweb.get_repo_list() context['repos'] = repos context['cloning'] = any('clone_progress' in repo for repo in repos) - context['refresh_page_sec'] = 3 if context['cloning'] else None + if context['cloning']: + context['refresh_page_sec'] = 3 + return context