fix: Skip buggy captures on index

pull/78/head
Raphaël Vinot 2020-07-06 15:45:24 +02:00
parent 316338a213
commit 760b479059
1 changed files with 3 additions and 0 deletions

View File

@ -394,6 +394,9 @@ def index_generic(show_hidden: bool=False):
continue
elif 'no_index' in cached:
continue
if 'timestamp' not in cached:
# this is a buggy capture, skip
continue
if cut_time and datetime.fromisoformat(cached['timestamp'][:-1]) < cut_time: # type: ignore
continue
titles.append((cached['uuid'], cached['title'], cached['timestamp'], cached['url'],