mirror of https://github.com/CIRCL/lookyloo
fix: Typing meta
parent
06a4c2cc87
commit
5f4a97e11b
|
@ -451,7 +451,7 @@ class Lookyloo():
|
|||
|
||||
@property
|
||||
def sorted_cache(self):
|
||||
all_cache = []
|
||||
all_cache: List[Dict[str, Union[str, Path]]] = []
|
||||
p = self.redis.pipeline()
|
||||
for directory in self.redis.hmget('lookup_dirs', *self.capture_uuids):
|
||||
if directory:
|
||||
|
|
|
@ -387,7 +387,7 @@ def index_generic(show_hidden: bool=False):
|
|||
continue
|
||||
elif 'no_index' in cached:
|
||||
continue
|
||||
if cut_time and datetime.fromisoformat(cached['timestamp'][:-1]) < cut_time: # type: ignore
|
||||
if cut_time and datetime.fromisoformat(cached['timestamp'][:-1]) < cut_time:
|
||||
continue
|
||||
titles.append((cached['uuid'], cached['title'], cached['timestamp'], cached['url'],
|
||||
cached['redirects'], True if cached['incomplete_redirects'] == '1' else False))
|
||||
|
|
Loading…
Reference in New Issue