Removed delete db row temp code
This commit is contained in:
@@ -53,8 +53,6 @@ impl Airports {
|
||||
}
|
||||
}))
|
||||
.load::<Airports>(&mut conn)?;
|
||||
// let string = serde_json::to_string(&airports).unwrap();
|
||||
// std::fs::write("test.json", string);
|
||||
Ok(airports)
|
||||
}
|
||||
|
||||
|
||||
@@ -66,13 +66,6 @@ function MapTiles() {
|
||||
}
|
||||
});
|
||||
});
|
||||
const temp: string[] = [];
|
||||
_airports.forEach((airport) => {
|
||||
if (!airport.metar) {
|
||||
temp.push(airport.icao);
|
||||
}
|
||||
});
|
||||
console.log(`delete from airports where icao = ANY('{${temp}}'::text[]);`);
|
||||
setAirports(_airports);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user