From 5704458dea1f1f28bfc52bf8f3d4dfecbd5d5c47 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 8 Jul 2023 00:34:11 -0700 Subject: fix: daily table not updating --- fileutil.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fileutil.py') diff --git a/fileutil.py b/fileutil.py index 4068030..2aa2d6f 100644 --- a/fileutil.py +++ b/fileutil.py @@ -61,8 +61,7 @@ def get_local_channels(path: str = "data"): def check_diff_refresh(): if not os.path.exists(os.path.join("data", "last_refresh.txt")): with open( - os.path.join("data", "last_refresh.txt"), "w", encoding="utf-8" - ) as file: + os.path.join("data", "last_refresh.txt"), "w", encoding="utf-8") as file: file.write(time.strftime("%Y-%m-%d")) return True with open(os.path.join("data", "last_refresh.txt"), "r", encoding="utf-8") as file: -- cgit v1.2.3