From 31d9fb7e59b6b21aff8d443dbc676cfb8e4613b8 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 4 Feb 2019 07:29:30 +0100 Subject: [PATCH] /moon as well as /Moon should show the Moon; use Moon,Fr for the city Moon in France --- lib/wttr_srv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wttr_srv.py b/lib/wttr_srv.py index ca2a48c..b5cd778 100644 --- a/lib/wttr_srv.py +++ b/lib/wttr_srv.py @@ -237,7 +237,7 @@ def wttr(location, request): # Trying to disable github caching return response - if location == 'moon' or location.startswith('moon@'): + if location.lower() == 'moon' or location.lower().startswith('moon@'): output = get_moon(location, html=html_output, lang=lang, query=query) else: output = get_wetter(location, ip_addr,