diff options
author | stuebinm | 2023-11-14 23:50:38 +0100 |
---|---|---|
committer | stuebinm | 2023-11-14 23:50:38 +0100 |
commit | b33c00f1c390265fc8dec98f57e36ee4ca9ba2ac (patch) | |
tree | a6355ccf256a38d7c27ea35f8da48abe970516e6 | |
parent | 8ae435ab77e2cc67e5e0412e58e4448e013b8de8 (diff) |
default to level=0 if tag not present
seems to give slightly better results
-rw-r--r-- | app/Main.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Main.hs b/app/Main.hs index ddfc3bd..2a31a49 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -166,7 +166,7 @@ app AppData{..} request respond = mkAnswer >>= (respond . toResponse) Left _ -> pure Notfound Right (platforms :: Vector Platform) -> do let answer = V.toList platforms - & sortOn (maybe (-100 :: Int) (fromRight (-100) . fmap fst . T.signed T.decimal) . osmLevel) + & sortOn (maybe (0::Int) (fromRight 0 . fmap fst . T.signed T.decimal) . osmLevel) <&> renderPlatform & (Html . T.concat) now <- getCurrentTime |