Updated airport codes

This commit is contained in:
2023-09-11 20:15:30 -04:00
parent 12ed29b016
commit 75ed374e2f
3 changed files with 544813 additions and 1289417 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -72,6 +72,9 @@ pub struct Metars {
impl Metars {
pub async fn get_all(icaos: String) -> Result<Vec<Self>, CustomError> {
if icaos.is_empty() {
return Ok(vec![]);
}
let station_icaos: Vec<&str> = icaos.split(',').collect();
let mut conn = db::connection()?;
let db_metars: Vec<Metars> = match metars::table