diff --git a/dbtools/__init__.py b/dbtools/__init__.py index cff5933..5ff001d 100644 --- a/dbtools/__init__.py +++ b/dbtools/__init__.py @@ -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")