fix db init

This commit is contained in:
Terrtia 2018-06-19 11:54:34 +02:00
parent 103787a07d
commit cd4c099685
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -514,13 +514,18 @@ def edit_tag_export():
else:
status_hive.append(False)
if int(misp_auto_events) == 1:
misp_active = True
if (misp_auto_events is not None) and (hive_auto_alerts is not None):
if int(misp_auto_events) == 1:
misp_active = True
else:
misp_active = False
if int(hive_auto_alerts) == 1:
hive_active = True
else:
hive_active = False
else:
misp_active = False
if int(hive_auto_alerts) == 1:
hive_active = True
else:
hive_active = False
nb_tags = str(r_serv_db.scard('list_export_tags'))