mirror of
https://github.com/chubin/wttr.in
synced 2025-01-12 03:58:45 +00:00
do not display location for 0-day queries (#342)
This commit is contained in:
parent
e3e1d8b354
commit
c8341c5d84
1 changed files with 3 additions and 1 deletions
|
@ -168,7 +168,9 @@ def get_wetter(location, ip, html=False, lang=None, query=None, location_name=No
|
|||
|
||||
if full_address \
|
||||
and query.get('format', 'txt') != 'png' \
|
||||
and (not query.get('no-city') and not query.get('no-caption')):
|
||||
and (not query.get('no-city')
|
||||
and not query.get('no-caption')
|
||||
and not query.get('days') == '0'):
|
||||
line = "%s: %s [%s]\n" % (
|
||||
get_message('LOCATION', lang).encode('utf-8'),
|
||||
full_address.encode('utf-8'),
|
||||
|
|
Loading…
Reference in a new issue