Don't provide the map for the PAQI metric (it is pollen only)

This commit is contained in:
Paul van Tilburg 2023-05-29 16:35:48 +02:00
parent d16699636b
commit 1010311403
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 0 additions and 1 deletions

View File

@ -567,7 +567,6 @@ pub(crate) async fn mark_map(
tokio::task::spawn_blocking(move || {
let maps = maps_handle.lock().expect("Maps handle lock was poisoned");
let image = match metric {
Metric::PAQI => maps.pollen_mark(position),
Metric::Pollen => maps.pollen_mark(position),
Metric::UVI => maps.uvi_mark(position),
_ => return Err(crate::Error::UnsupportedMetric(metric)),