Revised the long line in the JournalEntryConverter converter.
This commit is contained in:
parent
172a12b134
commit
09dd5ae541
@ -37,7 +37,8 @@ class JournalEntryConverter(BaseConverter):
|
|||||||
:param value: The journal entry ID.
|
:param value: The journal entry ID.
|
||||||
:return: The corresponding journal entry.
|
: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:
|
if journal_entry is None:
|
||||||
abort(404)
|
abort(404)
|
||||||
return journal_entry
|
return journal_entry
|
||||||
|
Loading…
Reference in New Issue
Block a user