Fix column name

This commit is contained in:
Klaus-Uwe Mitterer 2016-12-07 12:16:57 +01:00
parent 2cd04559c1
commit 64829d57ab

View file

@ -3,7 +3,7 @@
import argparse, dbtools, setuptools, twitools
def getSavepoint(db, user):
db.executeQuery("SELECT MAX(tweet_id) FROM retweets WHERE LOWER(author) = '%s'" % user.lower())
db.executeQuery("SELECT MAX(id) FROM retweets WHERE LOWER(author) = '%s'" % user.lower())
try:
return int(db.getNext()[0])
except: