add some standard python boilerplate

This commit is contained in:
Mark Eaton 2019-01-10 10:59:51 -05:00
parent 92643271d5
commit bc054a6918
1 changed files with 4 additions and 3 deletions

View File

@ -72,6 +72,7 @@ def checkToots(timeline, deleted_count=0):
print('No toots found!')
# trigger from here
account = mastodon.account(user_id)
print('Checking ' + str(account.statuses_count) + ' toots...')
checkToots(timeline)
if __name__ == '__main__':
account = mastodon.account(user_id)
print('Checking ' + str(account.statuses_count) + ' toots...')
checkToots(timeline)