diff --git a/bin/async_capture.py b/bin/async_capture.py index ec7568dc..23548605 100755 --- a/bin/async_capture.py +++ b/bin/async_capture.py @@ -82,10 +82,10 @@ class AsyncCapture(AbstractManager): if get_config('generic', 'default_public'): # 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: # 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( uuid, listing,