gitweb: Fix issue with page not refreshing during uninstall

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2022-09-03 17:28:43 -04:00
1 parent 2454527740
commit c608219795
1 file changed
+3 -1
+3 -1
View File
@@ -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