Removed the redundant partial time in the query_values pseudo property of the JournalEntryLineItem data model. They are redundant since it is always partial match now.

This commit is contained in:
依瑪貓 2023-03-24 09:13:26 +08:00
parent cb16b2f0ff
commit 5c4f6017b8

View File

@ -773,11 +773,6 @@ class JournalEntryLineItem(db.Model):
journal_entry_day: date = self.journal_entry.date
description: str = "" if self.description is None else self.description
return [description,
str(journal_entry_day.year),
"{}/{}".format(journal_entry_day.year,
journal_entry_day.month),
"{}/{}".format(journal_entry_day.month,
journal_entry_day.day),
"{}/{}/{}".format(journal_entry_day.year,
journal_entry_day.month,
journal_entry_day.day),