fix: Do not return the whole database if the list of captures to sort is empty.

Related #227
pull/228/head
Raphaël Vinot 2021-06-29 13:48:09 -07:00
parent 754336b726
commit 06aa85cfe8
1 changed files with 1 additions and 1 deletions

View File

@ -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: