aboutsummaryrefslogtreecommitdiffstats
path: root/fileutil.py
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-07-08 00:34:11 -0700
committerPinapelz <donaldshan1@outlook.com>2023-07-08 00:34:11 -0700
commit5704458dea1f1f28bfc52bf8f3d4dfecbd5d5c47 (patch)
tree111c544cccf2be5407724165adade9211b664871 /fileutil.py
parent645cacc6790852bad9eb04755b911bd432200c1c (diff)
fix: daily table not updating
Diffstat (limited to 'fileutil.py')
-rw-r--r--fileutil.py3
1 files changed, 1 insertions, 2 deletions
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:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage