diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-01-11 00:17:40 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-01-11 00:17:40 +0100 |
commit | 1099ef3b95bc79c322008a05cda1b54668076bce (patch) | |
tree | 1c0b9f54783801d28c87902aed3099d6a9485b1d /app/views | |
parent | b45e8f51b047ffa3a02b65f5e338d04c5576b851 (diff) | |
download | kosten-1099ef3b95bc79c322008a05cda1b54668076bce.tar.gz kosten-1099ef3b95bc79c322008a05cda1b54668076bce.tar.bz2 kosten-1099ef3b95bc79c322008a05cda1b54668076bce.zip |
Set date only if not today
Diffstat (limited to '')
-rw-r--r-- | app/views/expenses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/expenses.py b/app/views/expenses.py index af46446..fb87c6d 100644 --- a/app/views/expenses.py +++ b/app/views/expenses.py @@ -196,7 +196,7 @@ def add(): entry_flash("Neuer Eintrag %s hinzugefügt.", exp) - return redirect('.add', date = gen_date(exp.date)) + return redirect('.add', date = gen_date(exp.date) if exp.date != today() else None) return { 'form': form } |