From 509e87fa86a39348e03cfc7ca41ed1a9e9a53a5f Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 25 Aug 2019 20:26:57 +0200 Subject: [PATCH] use original location for /Moon (fixes #337) --- 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 0cf47bd..670515c 100644 --- a/lib/wttr_srv.py +++ b/lib/wttr_srv.py @@ -261,7 +261,7 @@ def wttr(location, request): # Trying to disable github caching return response - if location.lower() == 'moon' or location.lower().startswith('moon@'): + if orig_location.lower() == 'moon' or orig_location.lower().startswith('moon@'): output = get_moon(location, html=html_output, lang=lang, query=query) else: output = get_wetter(location, ip_addr,