mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Fixed bug in query
This commit is contained in:
parent
dada20d0b9
commit
3273b21608
4
twoot.py
4
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('_____________________________________________________________________________________')
|
||||
|
|
Loading…
Reference in New Issue
Block a user