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 2022-08-31 23:51:13 -07:00 committed by James Valleroy
parent 2454527740
commit c608219795
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

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