use original location for /Moon (fixes #337)

pull/338/head
Igor Chubin 6 years ago
parent 50dff37040
commit 509e87fa86

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

Loading…
Cancel
Save