Use datetime.__str__(), not isoformat()

Use datetime.__str__(), not isoformat() to conform to the native
timestamp format of SQLite3
This commit is contained in:
XANTRONIX Industrial 2025-02-15 17:10:00 -05:00
parent 23bf0f3f8b
commit cef61dcc97

View file

@ -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: