Skip to content

Commit

Permalink
[FIX] Some deepsources analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Jul 23, 2024
1 parent c6b97ea commit 92217f5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/app/blueprints/case/case_notes_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])

Expand Down
2 changes: 1 addition & 1 deletion source/app/blueprints/case/case_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 0 additions & 2 deletions source/app/business/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 92217f5

Please sign in to comment.