Skip to content

Commit a250c23

Browse files
committed
Update main.py
1 parent 2d67e8d commit a250c23

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
import base64
33
import logging
4-
import os
4+
import os, glob
55
from dotenv import load_dotenv
66
import hashlib
77
import sys
@@ -101,7 +101,10 @@ async def main():
101101
logger.info("Starting Taiga ind/pictures crawler...")
102102
print(f"Imports: {args.imports}")
103103
await a_moins_b(url, 0, -1, headers)
104-
104+
# suppression des fichiers cache
105+
listjson=glob.glob('./cache/*.json')
106+
for file in listjson:
107+
os.remove(file)
105108

106109
if args.imports == 'ind':
107110
collection_tasks = [col.get('function')(url, col, headers) for col in collections if col.get('method') != 'ExportPhotos']

0 commit comments

Comments
 (0)