Browse Source

[fix] change reboost messages

master
Alban Crommer 1 year ago
parent
commit
3686c42e7a
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      reboostTag.py

+ 3
- 2
reboostTag.py View File

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

Loading…
Cancel
Save