From 3686c42e7a24e99b454c06183545400714c8c0e9 Mon Sep 17 00:00:00 2001 From: Alban Crommer Date: Sun, 4 Aug 2019 18:39:57 +0200 Subject: [PATCH] [fix] change reboost messages --- reboostTag.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reboostTag.py b/reboostTag.py index 9870ea3..2b906fe 100755 --- a/reboostTag.py +++ b/reboostTag.py @@ -11,6 +11,7 @@ from os.path import isfile, isdir, dirname, join, realpath import sys import io import json +from datetime import datetime from toot.console import main # Command line Arguments @@ -67,7 +68,7 @@ itemList = json.loads( output) # 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: # Set the most recent id @@ -77,7 +78,7 @@ for item in itemList: # if never seen, and therefore recent, reboost 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 sim_args = [sys.argv[0], 'reblog', str(item['id'])]