mirror of https://github.com/CIRCL/lookyloo
fix: Make sure the view is consistent across gunicorn processes
parent
998ef12b06
commit
0a07412877
|
@ -324,8 +324,9 @@ class Lookyloo():
|
||||||
'''Get all the captures in the cache, sorted by timestamp (new -> old).
|
'''Get all the captures in the cache, sorted by timestamp (new -> old).
|
||||||
By default, this method will only return the captures that are currently cached.'''
|
By default, this method will only return the captures that are currently cached.'''
|
||||||
if capture_uuids is None:
|
if capture_uuids is None:
|
||||||
# Sort all recent captures
|
# Call from the index, we want all the recent captures
|
||||||
capture_uuids = self.redis.hkeys('lookup_dirs')
|
capture_uuids = self.redis.hkeys('lookup_dirs')
|
||||||
|
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
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Reference in New Issue