Correcting some typos

This commit is contained in:
Félix Aime 2021-06-15 13:24:01 +02:00
parent a1c0f12f21
commit 74770b75e7
2 changed files with 3 additions and 3 deletions

View File

@ -56,8 +56,8 @@ class OCTI(object):
Delete a OpenCTI instance by its id in the database. Delete a OpenCTI instance by its id in the database.
:return: status of the operation in JSON :return: status of the operation in JSON
""" """
if db.session.query(exists().where(OCTIInst.id == misp_id)).scalar(): if db.session.query(exists().where(OCTIInst.id == opencti_id)).scalar():
db.session.query(OCTIInst).filter_by(id=misp_id).delete() db.session.query(OCTIInst).filter_by(id=opencti_id).delete()
db.session.commit() db.session.commit()
return {"status": True, return {"status": True,
"message": "OpenCTI instance deleted"} "message": "OpenCTI instance deleted"}

View File

@ -59,7 +59,7 @@ app.register_blueprint(ioc_bp, url_prefix='/api/ioc')
app.register_blueprint(whitelist_bp, url_prefix='/api/whitelist') app.register_blueprint(whitelist_bp, url_prefix='/api/whitelist')
app.register_blueprint(config_bp, url_prefix='/api/config') app.register_blueprint(config_bp, url_prefix='/api/config')
app.register_blueprint(misp_bp, url_prefix='/api/misp') app.register_blueprint(misp_bp, url_prefix='/api/misp')
app.register_blueprint(octi_bp, url_prefix='/api/octi') app.register_blueprint(octi_bp, url_prefix='/api/opencti')
if __name__ == '__main__': if __name__ == '__main__':
ssl_cert = "{}/{}".format(path[0], 'cert.pem') ssl_cert = "{}/{}".format(path[0], 'cert.pem')