store user date instead of timestamp in queue.txt

This commit is contained in:
muskit
2023-01-11 22:50:47 -08:00
parent d183d1720c
commit 65018fcbed
5 changed files with 31 additions and 28 deletions
+5 -4
View File
@@ -178,10 +178,10 @@ class TwAPI:
async def post_ttweet(self, ttweet: tt.TalentTweet, is_catchup=False, dry_run=False):
print(f'------{ttweet.tweet_id} ({util.get_username_local(ttweet.author_id)})------')
REPLY = '{0} replied to {1}\n'
QUOTE_TWEET = '{0} quote tweeted {1}\n'
TWEET = '{0} tweeted\n'
RETWEET = '{0} retweeted {1}\n'
REPLY = '{0} replied to {1}!\n'
QUOTE_TWEET = '{0} quote tweeted {1}!\n'
TWEET = '{0} tweeted!\n'
RETWEET = '{0} retweeted {1}!\n'
def create_text():
author_username = f'@/{util.get_username_local(ttweet.author_id)}'
@@ -225,6 +225,7 @@ class TwAPI:
ttweet_url = util.ttweet_to_url(ttweet)
if dry_run: # DRY-RUN: only print tweet
print('--------------- [DRY RUN] ---------------')
print(text)
print(f'QRT: {ttweet_url}')
else: # NO DRY-RUN: post actual tweet