also update date when updating batch end

This commit is contained in:
codl 2022-02-27 13:20:24 +01:00
parent a85095cd00
commit 1c65cd2556
1 changed files with 2 additions and 0 deletions

View File

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