Updated data with public and has_metar
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user