mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-12 09:20:23 -05:00
Fix broken paths in TWCRadarCollector
This commit is contained in:
parent
3c855b469d
commit
6f297ebdd7
@ -54,10 +54,10 @@ async def downloadRadarFrames(radarType:str, timestamps: list) -> list:
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Clear out expired radar frames
|
# Clear out expired radar frames
|
||||||
for i in listdir(f'.temp/tiles/output/{radarType}'):
|
for i in listdir(f'.temp/output/{radarType}'):
|
||||||
if i.split('.')[0] not in [str(x) for x in timestamps] and i != "Thumbs.db":
|
if i.split('.')[0] not in [str(x) for x in timestamps] and i != "Thumbs.db":
|
||||||
l.debug(f"Deleting {i} as it is no longer valid.")
|
l.debug(f"Deleting {i} as it is no longer valid.")
|
||||||
remove(f".temp/tiles/output/{radarType}/" + i)
|
remove(f".temp/output/{radarType}/" + i)
|
||||||
|
|
||||||
async with aiohttp.ClientSession() as s:
|
async with aiohttp.ClientSession() as s:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user