From 41a42783716d5974e999e7bdcefa23836b03cfaa Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 8 Jul 2022 09:59:35 +0200 Subject: [PATCH] fix: [blueprints] remove old user library --- var/www/blueprints/correlation.py | 1 - var/www/blueprints/crawler_splash.py | 1 - var/www/blueprints/import_export.py | 5 +++-- var/www/blueprints/tags_ui.py | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/var/www/blueprints/correlation.py b/var/www/blueprints/correlation.py index ecc9b7ac..2fc82c4a 100644 --- a/var/www/blueprints/correlation.py +++ b/var/www/blueprints/correlation.py @@ -17,7 +17,6 @@ sys.path.append('modules') import Flask_config # Import Role_Manager -from Role_Manager import create_user_db, check_password_strength, check_user_role_integrity from Role_Manager import login_admin, login_analyst, login_read_only sys.path.append(os.path.join(os.environ['AIL_BIN'], 'lib')) diff --git a/var/www/blueprints/crawler_splash.py b/var/www/blueprints/crawler_splash.py index 7c79023e..979c14d7 100644 --- a/var/www/blueprints/crawler_splash.py +++ b/var/www/blueprints/crawler_splash.py @@ -17,7 +17,6 @@ sys.path.append('modules') import Flask_config # Import Role_Manager -from Role_Manager import create_user_db, check_password_strength, check_user_role_integrity from Role_Manager import login_admin, login_analyst, login_read_only sys.path.append(os.path.join(os.environ['AIL_BIN'], 'packages')) diff --git a/var/www/blueprints/import_export.py b/var/www/blueprints/import_export.py index ca424bb5..c30fe191 100644 --- a/var/www/blueprints/import_export.py +++ b/var/www/blueprints/import_export.py @@ -18,7 +18,6 @@ sys.path.append('modules') import Flask_config # Import Role_Manager -from Role_Manager import create_user_db, check_password_strength, check_user_role_integrity from Role_Manager import login_admin, login_analyst, login_read_only sys.path.append(os.path.join(os.environ['AIL_BIN'], 'export')) @@ -130,6 +129,8 @@ def export_object_file(): else: dict_misp_event_export[str(obj_tuple)] = request.form.get(obj_tuple) + #print(dict_misp_event_export) + if dict_misp_event_export.get('export_to_misp', None): export_to_misp = True else: @@ -191,7 +192,7 @@ def export_investigation(): if MispExport.ping_misp(): event_metadata = MispExport.create_investigation_event(investigation_uuid) else: - return Response(json.dumps({"error": "Can't reach MISP Instance"}, indent=2, sort_keys=True), mimetype='application/json'), 400 + return Response(json.dumps({"error": "Can't reach MISP Instance"}, indent=2, sort_keys=True), mimetype='application/json'), 400 return redirect(url_for('investigations_b.show_investigation', uuid=investigation_uuid)) diff --git a/var/www/blueprints/tags_ui.py b/var/www/blueprints/tags_ui.py index 5e2462a2..82209c90 100644 --- a/var/www/blueprints/tags_ui.py +++ b/var/www/blueprints/tags_ui.py @@ -17,7 +17,6 @@ sys.path.append('modules') import Flask_config # Import Role_Manager -from Role_Manager import create_user_db, check_password_strength, check_user_role_integrity from Role_Manager import login_admin, login_analyst, login_read_only sys.path.append(os.path.join(os.environ['AIL_BIN'], 'packages'))