mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-19 20:10:24 -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}")
|
l.error(f"Failed to write HeatingAndCooling record -- Status code {res.status_code}")
|
||||||
return
|
return
|
||||||
|
|
||||||
data = res.text()
|
data = res.text
|
||||||
data = data[63:-26]
|
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 = open('./.temp/HeatingAndCooling.i2m', 'a')
|
||||||
f.write(i2Doc)
|
f.write(i2Doc)
|
||||||
@ -42,7 +42,7 @@ def getData(coopId, geocode):
|
|||||||
def makeRecord():
|
def makeRecord():
|
||||||
l.info("Writing HeatingAndCooling record.")
|
l.info("Writing HeatingAndCooling record.")
|
||||||
|
|
||||||
header = '<Data type="HeatingAndCooling"'
|
header = '<Data type="HeatingAndCooling">'
|
||||||
footer = '</Data>'
|
footer = '</Data>'
|
||||||
|
|
||||||
with open('./.temp/HeatingAndCooling.i2m', 'a') as doc:
|
with open('./.temp/HeatingAndCooling.i2m', 'a') as doc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user