mirror of https://github.com/CIRCL/lookyloo
fix: hidden view
parent
0a89d2190d
commit
f9d8081efa
|
@ -30,6 +30,6 @@ class CaptureCache():
|
|||
# Error without all the keys in __default_cache_keys was fatal.
|
||||
# if the keys in __default_cache_keys are present, it was an HTTP error
|
||||
self.error: Optional[str] = cache_entry.get('error')
|
||||
self.incomplete_redirects: bool = True if cache_entry.get('incomplete_redirects') == 1 else False
|
||||
self.no_index: bool = True if cache_entry.get('no_index') == 1 else False
|
||||
self.incomplete_redirects: bool = True if cache_entry.get('incomplete_redirects') in [1, '1'] else False
|
||||
self.no_index: bool = True if cache_entry.get('no_index') in [1, '1'] else False
|
||||
self.categories: List[str] = json.loads(cache_entry['categories']) if cache_entry.get('categories') else []
|
||||
|
|
|
@ -406,6 +406,8 @@ def index_generic(show_hidden: bool=False, category: Optional[str]=None):
|
|||
for cached in lookyloo.sorted_cache:
|
||||
if not cached:
|
||||
continue
|
||||
if cut_time and cached.timestamp < cut_time:
|
||||
continue
|
||||
if category:
|
||||
if not cached.categories or category not in cached.categories:
|
||||
continue
|
||||
|
@ -415,8 +417,6 @@ def index_generic(show_hidden: bool=False, category: Optional[str]=None):
|
|||
continue
|
||||
elif cached.no_index:
|
||||
continue
|
||||
if cut_time and cached.timestamp < cut_time:
|
||||
continue
|
||||
|
||||
titles.append((cached.uuid, cached.title, cached.timestamp.isoformat(), cached.url,
|
||||
cached.redirects, cached.incomplete_redirects))
|
||||
|
|
Loading…
Reference in New Issue