Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewl committed Jan 23, 2018
1 parent 1fb31a4 commit f4c157d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func process_basestation_message(message string) {
if err != nil {
logger.Log("msg", "Failed to get airport from airport code "+dest_airport_code)
} else {
dest_lat_long := fmt.Sprintf("%.4f,%.4f", dest_airport.Lat, dest_airport.Lon)
dest_lat_long := fmt.Sprintf("%s,%s", dest_airport.Lat, dest_airport.Lon)
_, err := db.Exec("insert into watft(destination_lat_long,destination_airport_name,callsign,altitude) values(?,?,?)", dest_lat_long, dest_airport.Name, flight_callsign, flight_alt)
if err != nil {
logger.Log("msg", string(flight_callsign)+" just flew overhead, but failed to write into db", "err", err)
Expand Down

0 comments on commit f4c157d

Please sign in to comment.