diff --git a/lib/nexrad/storm.py b/lib/nexrad/storm.py index bc3daa0..c8dc613 100644 --- a/lib/nexrad/storm.py +++ b/lib/nexrad/storm.py @@ -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: