Fix call to getDate

This commit is contained in:
Klaus-Uwe Mitterer 2016-05-30 20:44:51 +02:00
parent 1c0b3da582
commit 593213bb2e

View file

@ -1,3 +1,4 @@
import setuptools
import sqlite3, pymysql, pymysql.cursors
SQLITE = 0
@ -64,7 +65,7 @@ class dbObject:
mode = "MIN"
else:
mode = "MAX"
return getDate(str(list(self.executeQuery("SELECT %s(SUBSTR(timestamp,0,11)) FROM tweets" % mode))[0][0]))
return setuptools.getDate(str(list(self.executeQuery("SELECT %s(SUBSTR(timestamp,0,11)) FROM tweets" % mode))[0][0]))
def getLatestTweet(db):
db.executeQuery("SELECT max(tweet_id) FROM tweets")