Use datetime.__str__(), not isoformat()
Use datetime.__str__(), not isoformat() to conform to the native timestamp format of SQLite3
This commit is contained in:
parent
23bf0f3f8b
commit
cef61dcc97
1 changed files with 2 additions and 4 deletions
|
@ -199,14 +199,12 @@ class StormReport(DatabaseTable):
|
|||
})
|
||||
|
||||
if timestamp is not None:
|
||||
clauses.append("timestamp_start >= :timestamp and timestamp_end <= :timestamp")
|
||||
clauses.append(":timestamp between timestamp_start and timestamp_end")
|
||||
|
||||
values.update({
|
||||
'timestamp': timestamp.isoformat()
|
||||
'timestamp': str(timestamp)
|
||||
})
|
||||
|
||||
values.append(timestamp.isoformat())
|
||||
|
||||
sql = "select " + ", ".join(columns) + " from nexrad_storm_report"
|
||||
|
||||
if len(clauses) > 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue