From 3273b21608a2f68d07fed044d63df55a8d0ebe0f Mon Sep 17 00:00:00 2001 From: jeancf Date: Thu, 15 Sep 2022 20:12:20 +0200 Subject: [PATCH] Fixed bug in query --- twoot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twoot.py b/twoot.py index 3217c34..df27238 100755 --- a/twoot.py +++ b/twoot.py @@ -616,14 +616,14 @@ def main(argv): SELECT tweet_id FROM toots WHERE twitter_account=? - ORDER BY timestamp ASC + ORDER BY toot_id ASC LIMIT ? ) DELETE from toots WHERE tweet_id IN excess''', (twit_account, excess_count)) sql.commit() - logging.debug('Deleted ' + str(excess_count) + ' records from database.') + logging.info('Deleted ' + str(excess_count) + ' old records from database.') logging.info('Run time : %2.1f seconds' % (time.time() - start_time)) logging.info('_____________________________________________________________________________________')