Skip to content

Commit

Permalink
[HOTFIX] Fixed wrong name in users list
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Jul 16, 2024
1 parent f556299 commit c33afe9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/app/business/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,14 @@ def update(identifier: int = None, request_json: dict = None, case_identifier: i
if latest_version.note_title == request_data.get('note_title') and latest_version.note_content == request_data.get('note_content'):
no_changes = True
app.logger.debug(f"Note {identifier} has not changed, skipping versioning")
print(f"Note {identifier} has not changed, skipping versioning")

if not no_changes:
note_version = NoteRevisions(
note_id=note.note_id,
revision_number=revision_number,
note_title=note.note_title,
note_content=note.note_content,
note_user=note.note_user,
note_user=current_user.id,
revision_timestamp=datetime.utcnow()
)
db.session.add(note_version)
Expand Down

0 comments on commit c33afe9

Please sign in to comment.