Revised the long line in the JournalEntryConverter converter.

This commit is contained in:
依瑪貓 2023-04-23 09:52:21 +08:00
parent 172a12b134
commit 09dd5ae541

View File

@ -37,7 +37,8 @@ class JournalEntryConverter(BaseConverter):
:param value: The journal entry ID.
:return: The corresponding journal entry.
"""
journal_entry: JournalEntry | None = db.session.get(JournalEntry, value)
journal_entry: JournalEntry | None \
= db.session.get(JournalEntry, value)
if journal_entry is None:
abort(404)
return journal_entry