mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-20 07:12:05 +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
|
SELECT tweet_id
|
||||||
FROM toots
|
FROM toots
|
||||||
WHERE twitter_account=?
|
WHERE twitter_account=?
|
||||||
ORDER BY timestamp ASC
|
ORDER BY toot_id ASC
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
)
|
)
|
||||||
DELETE from toots
|
DELETE from toots
|
||||||
WHERE tweet_id IN excess''', (twit_account, excess_count))
|
WHERE tweet_id IN excess''', (twit_account, excess_count))
|
||||||
sql.commit()
|
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('Run time : %2.1f seconds' % (time.time() - start_time))
|
||||||
logging.info('_____________________________________________________________________________________')
|
logging.info('_____________________________________________________________________________________')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user