Argument order? REVERSED??? It's more likely than you think
This commit is contained in:
parent
1600357d51
commit
be15032ce9
2 changed files with 3 additions and 3 deletions
|
@ -73,5 +73,5 @@ class Station():
|
||||||
db.execute(sql, (
|
db.execute(sql, (
|
||||||
self.wban, self.call, self.name,
|
self.wban, self.call, self.name,
|
||||||
self.site_elevation, self.tower_height,
|
self.site_elevation, self.tower_height,
|
||||||
self.coord.lat, self.coord.lon
|
self.coord.lon, self.coord.lat
|
||||||
))
|
))
|
||||||
|
|
|
@ -129,7 +129,7 @@ class StormReport():
|
||||||
|
|
||||||
print(sql)
|
print(sql)
|
||||||
|
|
||||||
st = db.execute(sql, (self.coord_start.lat,
|
st = db.execute(sql, (self.coord_start.lon,
|
||||||
self.coord_start.lon)))
|
self.coord_start.lat)))
|
||||||
|
|
||||||
return st.fetchone()
|
return st.fetchone()
|
||||||
|
|
Loading…
Add table
Reference in a new issue