From 8b13346dc77e05d647110e6e4ae924dd3350e9ba Mon Sep 17 00:00:00 2001 From: c8y3 <25362953+c8y3@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:43:37 +0200 Subject: [PATCH] [FIX] Some deepsources analysis issues --- source/app/blueprints/case/case_notes_routes.py | 2 +- source/app/blueprints/case/case_routes.py | 2 +- source/app/business/notes.py | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/app/blueprints/case/case_notes_routes.py b/source/app/blueprints/case/case_notes_routes.py index 9806a079b..c2cb3de76 100644 --- a/source/app/blueprints/case/case_notes_routes.py +++ b/source/app/blueprints/case/case_notes_routes.py @@ -528,7 +528,7 @@ def socket_ping_note(data): @socket_io.on('pong-note') @ac_socket_requires(CaseAccessLevel.full_access) -def socket_ping_note(data): +def socket_pong_note(data): emit('pong-note', {"user": current_user.name, "note_id": data['note_id']}, room=data['channel']) diff --git a/source/app/blueprints/case/case_routes.py b/source/app/blueprints/case/case_routes.py index 0232c9e60..07ff1cd80 100644 --- a/source/app/blueprints/case/case_routes.py +++ b/source/app/blueprints/case/case_routes.py @@ -171,7 +171,7 @@ def socket_summary_onsave(data): @socket_io.on('clear_buffer') @ac_socket_requires(CaseAccessLevel.full_access) -def socket_summary_onchange(message): +def socket_summary_on_clear_buffer(message): emit('clear_buffer', message) diff --git a/source/app/business/notes.py b/source/app/business/notes.py index cfffab41a..5faf6edab 100644 --- a/source/app/business/notes.py +++ b/source/app/business/notes.py @@ -47,7 +47,6 @@ def notes_create(request_json, case_identifier): :param request_json: The request data. :param case_identifier: The case identifier. """ - try: request_data = call_modules_hook('on_preload_note_create', data=request_json, caseid=case_identifier) note_schema = CaseNoteSchema() @@ -95,7 +94,6 @@ def notes_update(identifier: int = None, request_json: dict = None, case_identif :param request_json: The request data. :param case_identifier: The case identifier. """ - try: addnote_schema = CaseNoteSchema()