Skip to content

Commit 73a86c0

Browse files
authored
remove cache old
1 parent 6b68800 commit 73a86c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/export_pictures.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ async def export_pictures(url, col, headers):
4848
current = json.load(open(f'./cache/pictures/taiga_{col.get("params")["type"]}.json', 'r', encoding='utf-8'))
4949
compared = compare_fingerprints(current['data'], data[0][1])
5050

51-
if compared.__len__() > 0:
52-
logger.info(f'<./cache/pictures/taiga_{col.get("params")["type"]}.json> Already exists moving to .old file !')
53-
os.rename(f'./cache/pictures/taiga_{col.get("params")["type"]}.json', f'./cache/pictures/taiga_{col.get("params")["type"]}.json.old')
54-
else:
55-
logger.info(f'<./cache/pictures/taiga_{col.get("params")["type"]}.json> All datas are the same !')
51+
#if compared.__len__() > 0:
52+
# logger.info(f'<./cache/pictures/taiga_{col.get("params")["type"]}.json> Already exists moving to .old file !')
53+
# os.rename(f'./cache/pictures/taiga_{col.get("params")["type"]}.json', f'./cache/pictures/taiga_{col.get("params")["type"]}.json.old')
54+
#else:
55+
# logger.info(f'<./cache/pictures/taiga_{col.get("params")["type"]}.json> All datas are the same !')
5656

5757
with open(f'./cache/pictures/taiga_{col.get("params")["type"]}.json', 'w', encoding='utf-8') as fichier:
5858
json.dump(

0 commit comments

Comments
 (0)