mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-17 13:07:17 +02:00
Merge pull request #203 from curly60e/sourcery/curly60e-patch-125
Bug fix (Sourcery refactored)
This commit is contained in:
commit
863d264863
1 changed files with 8 additions and 16 deletions
24
ppi.py
24
ppi.py
|
|
@ -140,16 +140,12 @@ def wttrDataV1():
|
|||
lang = input("Insert your language: ")
|
||||
unit = input("Insert your metric units: ")
|
||||
list = "curl '" + lang + ".wttr.in/" + selectData2 + "?F&" + unit + "'"
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
print(a)
|
||||
else:
|
||||
list = "curl wttr.in/" + selectData + "?F"
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
print(a)
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
print(a)
|
||||
input("Continue...")
|
||||
except:
|
||||
pass
|
||||
|
|
@ -204,16 +200,12 @@ def wttrDataV2():
|
|||
lang = input("Insert your language: ")
|
||||
unit = input("Insert your metric units: ")
|
||||
list = "curl 'v2.wttr.in/" + selectData2 + "?" + unit + "&F&lang=" + lang + "'"
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
print(a)
|
||||
else:
|
||||
list = "curl v2.wttr.in/" + selectData + "?F"
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
print(a)
|
||||
a = os.popen(list).read()
|
||||
clear()
|
||||
blogo()
|
||||
print(a)
|
||||
input("Continue...")
|
||||
except:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue