From 63f03e111186f893854c13122fe2f5bb59d1cdb3 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 12 Sep 2013 17:27:16 +0200 Subject: [PATCH] disqus import now sets the comment creation date correctly --- isso/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isso/db.py b/isso/db.py index 95d7ca0..fcc9360 100644 --- a/isso/db.py +++ b/isso/db.py @@ -135,8 +135,8 @@ class SQLite(Abstract): keys = ','.join(self.fields) values = ','.join('?' * len(self.fields)) con.execute('INSERT INTO comments (%s) VALUES (%s);' % (keys, values), ( - uri, 0, time.time(), None, c["text"], c["author"], c["hash"], c["website"], - c["parent"], self.mode, voters) + uri, 0, c['created'] or time.time(), None, c["text"], c["author"], + c["hash"], c["website"], c["parent"], self.mode, voters) ) with sqlite3.connect(self.dbpath) as con: