fix: Typing meta

pull/116/head
Raphaël Vinot 2020-10-29 14:19:13 +01:00
parent 06a4c2cc87
commit 5f4a97e11b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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