From 73946c27e224e264e7a65652d25cd9a13d1d4740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Thu, 10 Jun 2021 19:00:06 +0200 Subject: [PATCH] More code modification regarding MISP integration --- server/backend/app/classes/misp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/backend/app/classes/misp.py b/server/backend/app/classes/misp.py index 0835ca8..b67447d 100644 --- a/server/backend/app/classes/misp.py +++ b/server/backend/app/classes/misp.py @@ -3,8 +3,9 @@ from app import db from app.db.models import MISPInst -from sqlalchemy.sql import exists from app.definitions import definitions as defs + +from sqlalchemy.sql import exists from urllib.parse import unquote from flask import escape from pymisp import PyMISP @@ -27,7 +28,7 @@ class MISP(object): name = instance["name"] apikey = instance["key"] verify = instance["ssl"] - last_sync = int(time.time()-31536000) # One year + last_sync = int(time.time()-31536000) # One year sameinstances = db.session.query(MISPInst).filter( MISPInst.url == url, MISPInst.apikey == apikey)