fix: index page stuck building captures for no good reason

pull/733/head
Raphaël Vinot 2023-07-04 11:22:36 +02:00
parent 6bb660ed82
commit 2c5c30006c
1 changed files with 5 additions and 1 deletions

View File

@ -458,7 +458,11 @@ class Lookyloo():
if datetime.fromisoformat(date_str).replace(tzinfo=timezone.utc) < index_cut_time: if datetime.fromisoformat(date_str).replace(tzinfo=timezone.utc) < index_cut_time:
continue continue
capture_uuids.append(uuid) capture_uuids.append(uuid)
cached_captures_only = False # NOTE: we absolutely have to respect the cached_captures_only setting and
# never overwrite it. This method is called to display the index
# and if we try to display everything, including the non-cached entries,
# the index can get stuck building a lot of captures
# cached_captures_only = False
if not capture_uuids: if not capture_uuids:
# No captures at all on the instance # No captures at all on the instance