mirror of https://github.com/CIRCL/lookyloo
fix: Make sure listing setting is properly handled.
parent
ff8ec51ef2
commit
40ad6d0031
|
@ -82,10 +82,10 @@ class AsyncCapture(AbstractManager):
|
||||||
|
|
||||||
if get_config('generic', 'default_public'):
|
if get_config('generic', 'default_public'):
|
||||||
# By default, the captures are on the index, unless the user mark them as un-listed
|
# By default, the captures are on the index, unless the user mark them as un-listed
|
||||||
listing = False if ('listing' in to_capture and isinstance(to_capture['listing'], str) and to_capture['listing'].lower() in ['false', '0', '']) else True
|
listing = False if ('listing' in to_capture and to_capture['listing'] == 0) else True
|
||||||
else:
|
else:
|
||||||
# By default, the captures are not on the index, unless the user mark them as listed
|
# By default, the captures are not on the index, unless the user mark them as listed
|
||||||
listing = True if ('listing' in to_capture and isinstance(to_capture['listing'], str) and to_capture['listing'].lower() in ['true', '1']) else False
|
listing = True if ('listing' in to_capture and to_capture['listing'] == 1) else False
|
||||||
|
|
||||||
self.lookyloo.store_capture(
|
self.lookyloo.store_capture(
|
||||||
uuid, listing,
|
uuid, listing,
|
||||||
|
|
Loading…
Reference in New Issue