Fix column name

This commit is contained in:
Klaus-Uwe Mitterer 2016-12-07 12:16:57 +01:00
parent f39d6aefa6
commit 057dc64a49

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: