diff --git a/server/api/src/public/v1/calculate.rs b/server/api/src/public/v1/calculate.rs index 99a47144..e60850d8 100644 --- a/server/api/src/public/v1/calculate.rs +++ b/server/api/src/public/v1/calculate.rs @@ -96,14 +96,16 @@ async fn bootstrap( if !feat.contains_property("__name") && !instance.is_empty() { feat.set_property("__name", instance.clone()); } - feat.set_property( - "__mode", - if conn.scanner_type == ScannerType::Unown { - "circle_pokemon" - } else { - "circle_smart_pokemon" - }, - ); + if !feat.contains_property("__mode") { + feat.set_property( + "__mode", + if conn.scanner_type == ScannerType::Unown { + "circle_pokemon" + } else { + "circle_smart_pokemon" + }, + ); + } if save_to_db { route::Query::upsert_from_geometry(&conn.koji, GeoFormats::Feature(feat.clone())) .await