From 1c65cd2556cc95f3973aae869232fb44d4a096cc Mon Sep 17 00:00:00 2001 From: codl Date: Sun, 27 Feb 2022 13:20:24 +0100 Subject: [PATCH] also update date when updating batch end --- tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks.py b/tasks.py index 5818ef4..ba774d4 100644 --- a/tasks.py +++ b/tasks.py @@ -172,8 +172,10 @@ def fetch_acc(id_): db.desc(Post.created_at)).first()) if batch_end: account.fetch_current_batch_end_id = batch_end.remote_id + account.fetch_current_batch_end_date = batch_end.created_at else: account.fetch_current_batch_end_id = None + account.fetch_current_batch_end_date = None db.session.commit() else: