remove leftover debug print, standardise task prints

This commit is contained in:
codl 2019-03-11 12:12:04 +01:00
parent 249fab7014
commit 0f3df6ad24
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 3 deletions

View File

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