use original location for /Moon (fixes #337)

This commit is contained in:
Igor Chubin 2019-08-25 20:26:57 +02:00
parent 50dff37040
commit 509e87fa86

View file

@ -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,