disqus import now sets the comment creation date correctly
This commit is contained in:
parent
3218e16532
commit
63f03e1111
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user