mirror of https://github.com/CIRCL/lookyloo
fix: Do not return the whole database if the list of captures to sort is empty.
Related #227pull/228/head
parent
754336b726
commit
06aa85cfe8
|
@ -536,7 +536,7 @@ class Lookyloo():
|
|||
|
||||
def sorted_capture_cache(self, capture_uuids: Optional[Iterable[str]]=None) -> List[CaptureCache]:
|
||||
'''Get all the captures in the cache, sorted by timestamp (new -> old).'''
|
||||
if not capture_uuids:
|
||||
if capture_uuids is None:
|
||||
# Sort all captures
|
||||
capture_uuids = self.capture_uuids
|
||||
if not capture_uuids:
|
||||
|
|
Loading…
Reference in New Issue