From be15032ce962c00398cf971746ddd9def7b3437f Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 10 Feb 2025 21:23:03 -0500 Subject: [PATCH] Argument order? REVERSED??? It's more likely than you think --- lib/nexrad/station.py | 2 +- lib/nexrad/storm.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nexrad/station.py b/lib/nexrad/station.py index 4673ae9..a09dbe1 100644 --- a/lib/nexrad/station.py +++ b/lib/nexrad/station.py @@ -73,5 +73,5 @@ class Station(): db.execute(sql, ( self.wban, self.call, self.name, self.site_elevation, self.tower_height, - self.coord.lat, self.coord.lon + self.coord.lon, self.coord.lat )) diff --git a/lib/nexrad/storm.py b/lib/nexrad/storm.py index 3fe57d6..f2c07e9 100644 --- a/lib/nexrad/storm.py +++ b/lib/nexrad/storm.py @@ -129,7 +129,7 @@ class StormReport(): print(sql) - st = db.execute(sql, (self.coord_start.lat, - self.coord_start.lon))) + st = db.execute(sql, (self.coord_start.lon, + self.coord_start.lat))) return st.fetchone()