From b1a34784aebcd7ed55d62d9120f8ad69be3b2c8d Mon Sep 17 00:00:00 2001 From: Wojciech Kwolek Date: Sat, 26 Sep 2020 18:49:42 +0200 Subject: [PATCH] fix delete_accomplishment --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 9299e55..587d8eb 100644 --- a/app/main.py +++ b/app/main.py @@ -114,8 +114,8 @@ def delete_accomplishment(accomplishment_id): if a.user_id != current_user.id: abort(403) - # TODO: fix: we're using from_str when it's a datetime in the db? it works on sqlite but - back_url = url_for('main.edit_day', day=Day.from_str(a.time, user).url) + back_url = url_for('main.edit_day', day=Day.from_timestamp( + a.time, current_user).url) form = DeleteForm() if form.validate_on_submit():