Gotta update the datestamp too.
This commit is contained in:
		@@ -84,7 +84,8 @@ def main():
 | 
				
			|||||||
                    query3 = "INSERT INTO stations ([from], last_heard_unix, count) \
 | 
					                    query3 = "INSERT INTO stations ([from], last_heard_unix, count) \
 | 
				
			||||||
                    VALUES("+station_update+") \
 | 
					                    VALUES("+station_update+") \
 | 
				
			||||||
                    ON CONFLICT([from]) \
 | 
					                    ON CONFLICT([from]) \
 | 
				
			||||||
                    DO UPDATE SET count = count + 1;"
 | 
					                    DO UPDATE SET count = count + 1,\
 | 
				
			||||||
 | 
					                                  last_heard_unix = excluded.last_heard_unix;"
 | 
				
			||||||
                    #print(query3)
 | 
					                    #print(query3)
 | 
				
			||||||
                    logging.debug(query3)
 | 
					                    logging.debug(query3)
 | 
				
			||||||
                    # Insert/update data
 | 
					                    # Insert/update data
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user