remove leftover debug print, standardise task prints
This commit is contained in:
parent
249fab7014
commit
0f3df6ad24
5
tasks.py
5
tasks.py
|
@ -99,7 +99,7 @@ def make_dormant(acc):
|
||||||
@unique
|
@unique
|
||||||
def fetch_acc(id_):
|
def fetch_acc(id_):
|
||||||
account = Account.query.get(id_)
|
account = Account.query.get(id_)
|
||||||
print(f'fetching {account}')
|
print("Fetching {}".format(account))
|
||||||
try:
|
try:
|
||||||
if not account.fetch_history_complete:
|
if not account.fetch_history_complete:
|
||||||
oldest = (db.session.query(Post)
|
oldest = (db.session.query(Post)
|
||||||
|
@ -140,7 +140,6 @@ def fetch_acc(id_):
|
||||||
since_id = None
|
since_id = None
|
||||||
|
|
||||||
|
|
||||||
print('max_id: {}, since_id: {}'.format(max_id, since_id))
|
|
||||||
fetch_posts = noop
|
fetch_posts = noop
|
||||||
if (account.service == 'twitter'):
|
if (account.service == 'twitter'):
|
||||||
fetch_posts = libforget.twitter.fetch_posts
|
fetch_posts = libforget.twitter.fetch_posts
|
||||||
|
@ -267,7 +266,7 @@ def delete_from_account(account_id):
|
||||||
break
|
break
|
||||||
|
|
||||||
if to_delete:
|
if to_delete:
|
||||||
print("deleting {}".format(to_delete))
|
print("Deleting {}".format(to_delete))
|
||||||
account.touch_delete()
|
account.touch_delete()
|
||||||
action(to_delete)
|
action(to_delete)
|
||||||
account.reset_backoff()
|
account.reset_backoff()
|
||||||
|
|
Loading…
Reference in New Issue