mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
fix db init
This commit is contained in:
parent
103787a07d
commit
cd4c099685
1 changed files with 10 additions and 5 deletions
|
@ -514,6 +514,8 @@ def edit_tag_export():
|
||||||
else:
|
else:
|
||||||
status_hive.append(False)
|
status_hive.append(False)
|
||||||
|
|
||||||
|
if (misp_auto_events is not None) and (hive_auto_alerts is not None):
|
||||||
|
|
||||||
if int(misp_auto_events) == 1:
|
if int(misp_auto_events) == 1:
|
||||||
misp_active = True
|
misp_active = True
|
||||||
else:
|
else:
|
||||||
|
@ -522,6 +524,9 @@ def edit_tag_export():
|
||||||
hive_active = True
|
hive_active = True
|
||||||
else:
|
else:
|
||||||
hive_active = False
|
hive_active = False
|
||||||
|
else:
|
||||||
|
misp_active = False
|
||||||
|
hive_active = False
|
||||||
|
|
||||||
nb_tags = str(r_serv_db.scard('list_export_tags'))
|
nb_tags = str(r_serv_db.scard('list_export_tags'))
|
||||||
nb_tags_whitelist_misp = str(r_serv_db.scard('whitelist_misp')) + ' / ' + nb_tags
|
nb_tags_whitelist_misp = str(r_serv_db.scard('whitelist_misp')) + ' / ' + nb_tags
|
||||||
|
|
Loading…
Reference in a new issue