Updated data with public and has_metar

This commit is contained in:
2024-01-05 19:38:13 -05:00
parent 4e07a242df
commit 7ed5e5a673
7 changed files with 36892 additions and 15 deletions

View File

@@ -45,6 +45,8 @@ pub struct Airport {
pub has_beacon: Option<bool>,
pub runways: Vec<Runway>,
pub frequencies: Vec<Frequency>,
pub has_metar: bool,
pub public: bool,
}
impl Into<QueryAirport> for Airport {

View File

@@ -26,7 +26,6 @@ async fn import(mut payload: Multipart, auth: JwtAuth) -> HttpResponse {
return ResponseError::error_response(&err)
};
while let Some(item) = payload.next().await {
let mut bytes = web::BytesMut::new();
let mut field = match item {