Merge pull request #203 from curly60e/sourcery/curly60e-patch-125

Bug fix (Sourcery refactored)
This commit is contained in:
curly60e 2020-10-16 08:23:52 -03:00 committed by GitHub
commit 863d264863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
ppi.py
View file

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