Renamed the "journal_entry_date" variable to "date" in the "__form" method of the JournalEntryData class in the lib module of the test site.

This commit is contained in:
依瑪貓 2023-04-26 13:42:47 +08:00
parent 25bfcf4aa4
commit ee5b447c23

View File

@ -167,11 +167,10 @@ class JournalEntryData:
:param is_update: True for an update operation, or False otherwise :param is_update: True for an update operation, or False otherwise
:return: The journal entry as a form. :return: The journal entry as a form.
""" """
journal_entry_date: dt.date \ date: dt.date = dt.date.today() - dt.timedelta(days=self.days)
= dt.date.today() - dt.timedelta(days=self.days)
form: dict[str, str] = {"csrf_token": csrf_token, form: dict[str, str] = {"csrf_token": csrf_token,
"next": next_uri, "next": next_uri,
"date": journal_entry_date.isoformat()} "date": date.isoformat()}
for i in range(len(self.currencies)): for i in range(len(self.currencies)):
form.update(self.currencies[i].form(i + 1, is_update)) form.update(self.currencies[i].form(i + 1, is_update))
if self.note is not None: if self.note is not None: