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, (
 | 
			
		||||
            self.wban, self.call, self.name,
 | 
			
		||||
            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)
 | 
			
		||||
 | 
			
		||||
        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()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue