remove plus if temp positive
This commit is contained in:
parent
da5ddaa09d
commit
11f503d8ce
@ -5,5 +5,7 @@ import sys
|
||||
|
||||
req = requests.get(f'https://wttr.in/{sys.argv[1]}?format="%t:%c:%C"').text[1:-1].split(':')
|
||||
|
||||
req[0] = req[0][1:] if req[0][0] == '+' else req[0]
|
||||
|
||||
print('{' + f'"text": "{req[0]} {req[1]}", "tooltip": "", "class": "{req[2]}"' + '}')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user