[fix] change reboost messages

This commit is contained in:
Alban Crommer 2019-08-04 18:39:57 +02:00 committed by root
parent 388735dc2b
commit 3686c42e7a
1 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ from os.path import isfile, isdir, dirname, join, realpath
import sys import sys
import io import io
import json import json
from datetime import datetime
from toot.console import main from toot.console import main
# Command line Arguments # Command line Arguments
@ -67,7 +68,7 @@ itemList = json.loads( output)
# Loop through items # Loop through items
print ('Running with last_seen being: {}'.format(last_seen)) #print ('Running with last_seen being: {}'.format(last_seen))
for item in itemList: for item in itemList:
# Set the most recent id # Set the most recent id
@ -77,7 +78,7 @@ for item in itemList:
# if never seen, and therefore recent, reboost # if never seen, and therefore recent, reboost
if( last_seen != item['id'] and dry_run != True ): if( last_seen != item['id'] and dry_run != True ):
print("Reboosting item#{}".format(item['id']) ) print("{}; Reboosting item #{} by {}".format(datetime.now().strftime("%y/%m/%d %H:%M:%S"),item['id'], item['account']['acct']) )
# Build a fake list of args to run the toot main() function on # Build a fake list of args to run the toot main() function on
sim_args = [sys.argv[0], 'reblog', str(item['id'])] sim_args = [sys.argv[0], 'reblog', str(item['id'])]