Messed with metar stuff
This commit is contained in:
@@ -309,8 +309,7 @@ impl Airport {
|
||||
Self::push_condition_like(&mut builder, &mut has_where, "name", &query.name);
|
||||
Self::push_condition_bounds(&mut builder, &mut has_where, &query.bounds)?;
|
||||
|
||||
// Order by AircraftCategory
|
||||
builder.push(" ORDER BY (metar_observation_time IS NULL), ");
|
||||
builder.push(" ORDER BY (metar_observation_time IS NULL) ASC, ");
|
||||
builder.push(" CASE category ");
|
||||
builder.push(" WHEN 'large_airport' THEN 1 ");
|
||||
builder.push(" WHEN 'medium_airport' THEN 2 ");
|
||||
|
||||
Reference in New Issue
Block a user