From 593213bb2e6baa033167a77e1b5d1f376d543380 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 30 May 2016 20:44:51 +0200 Subject: [PATCH] Fix call to getDate --- dbtools/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")