mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-19 12:10:23 -05:00
Fix more typos
This commit is contained in:
parent
06912658bd
commit
3bf87754f5
@ -30,10 +30,10 @@ def getData(coopId, geocode):
|
||||
l.error(f"Failed to write HeatingAndCooling record -- Status code {res.status_code}")
|
||||
return
|
||||
|
||||
data = res.text()
|
||||
data = data[63:-26]
|
||||
data = res.text
|
||||
newData = data[63:-26]
|
||||
|
||||
i2Doc = f'<HeatingAndCooling id="000000000" locationKey="{coopId}" isWxScan="0">\n {data}\n <clientKey>{coopId}</clientKey>\n </HeatingAndCooling>'
|
||||
i2Doc = f'\n <HeatingAndCooling id="000000000" locationKey="{coopId}" isWxScan="0">\n {newData}\n <clientKey>{coopId}</clientKey>\n </HeatingAndCooling>'
|
||||
|
||||
f = open('./.temp/HeatingAndCooling.i2m', 'a')
|
||||
f.write(i2Doc)
|
||||
@ -42,7 +42,7 @@ def getData(coopId, geocode):
|
||||
def makeRecord():
|
||||
l.info("Writing HeatingAndCooling record.")
|
||||
|
||||
header = '<Data type="HeatingAndCooling"'
|
||||
header = '<Data type="HeatingAndCooling">'
|
||||
footer = '</Data>'
|
||||
|
||||
with open('./.temp/HeatingAndCooling.i2m', 'a') as doc:
|
||||
|
Loading…
x
Reference in New Issue
Block a user