mirror of https://github.com/CIRCL/lookyloo
chg: Delist less captures, avoid edge case causing an exception for MISP export
parent
d0f6672302
commit
2a843ac828
|
@ -623,7 +623,7 @@ class Lookyloo():
|
|||
|
||||
priority = get_priority(source, user, authenticated)
|
||||
query['priority'] = priority
|
||||
if priority < -10:
|
||||
if priority < -100:
|
||||
# Someone is probably abusing the system with useless URLs, remove them from the index
|
||||
query['listing'] = 0
|
||||
try:
|
||||
|
@ -1107,6 +1107,11 @@ class Lookyloo():
|
|||
if not cache:
|
||||
return {'error': 'UUID missing in cache, try again later.'}
|
||||
|
||||
# The tree is needed to generate the export. The call below makes sure it is cached
|
||||
# as it may not be if the uses calls the json export without viewing the tree first,
|
||||
# and it has been archived.
|
||||
self.get_crawled_tree(capture_uuid)
|
||||
|
||||
# if the file submitted on lookyloo cannot be displayed (PDF), it willbe downloaded.
|
||||
# In the case, we want to have it as a FileObject in the export
|
||||
filename, pseudofile = self.get_data(capture_uuid)
|
||||
|
|
Loading…
Reference in New Issue