Replace broken unicode with fixed character

This commit is contained in:
April 2022-11-13 16:50:54 -07:00
parent 175ab43039
commit 7727cdc23d
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E

View File

@ -38,7 +38,7 @@ async def getData(airport):
async with s.get(url) as r:
data = await r.text()
newData = data[48:-11]
newData = data[48:-11].replace('¿', '-')
# Write to i2doc file
i2Doc = f'<AirportDelays id="000000000" locationKey="{airport}" isWxScan="0">' + '' + newData + f'<clientKey>{airport}</clientKey></AirportDelays>'