also update date when updating batch end
This commit is contained in:
parent
a85095cd00
commit
1c65cd2556
2
tasks.py
2
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:
|
||||
|
|
Loading…
Reference in New Issue