write in result file

This commit is contained in:
Stanislas Jouffroy 2025-06-13 23:38:48 +02:00
parent 221d90b398
commit d968e89e07
2 changed files with 2 additions and 4 deletions

View file

@ -30,7 +30,4 @@ class ResultFile:
return False
content = self.path.read_text()
date = f"{menus.days[0]} - {menus.month} - {datetime.date.today().year}"
res = f"{sha256} - {date}" not in content and date in content
if res:
self.write(sha256, menus)
return res
return f"{sha256} - {date}" not in content and date in content