fix delete_accomplishment

This commit is contained in:
Wojciech Kwolek 2020-09-26 18:49:42 +02:00
parent c076e60403
commit b1a34784ae
1 changed files with 2 additions and 2 deletions

View File

@ -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():