Compare commits

..

2 Commits

Author SHA1 Message Date
4c8d06e2c5 Updated optional dependencies in pyproject.toml.
(cherry picked from commit 0200b4ef38)
2024-06-04 06:14:33 +08:00
a73f3fb9cd Updated the dependencies in pyproject.toml.
(cherry picked from commit 7c3f1d45de)
2024-06-04 06:14:33 +08:00
2 changed files with 1 additions and 7 deletions

View File

@ -67,6 +67,7 @@ def show_add_journal_entry_form(journal_entry_type: JournalEntryType) -> str:
form.validate()
else:
form = journal_entry_op.form()
form.date.data = dt.date.today()
return journal_entry_op.render_create_template(form)

View File

@ -135,13 +135,6 @@ class JournalEntryForm {
};
this.#resetDeleteCurrencyButtons();
this.#initializeDragAndDropReordering();
if (this.#date.value === "") {
const now = new Date();
const year = String(now.getFullYear()).padStart(4, "0");
const month = String(now.getMonth() + 1).padStart(2, "0");
const day = String(now.getDate()).padStart(2, "0");
this.#date.value = `${year}-${month}-${day}`;
}
this.#date.onchange = () => this.#validateDate();
this.#note.onchange = () => this.#validateNote();
this.#element.onsubmit = () => {