aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fileutil.py3
-rw-r--r--nijitrack.py2
2 files changed, 2 insertions, 3 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:
diff --git a/nijitrack.py b/nijitrack.py
index 5815066..a67a889 100644
--- a/nijitrack.py
+++ b/nijitrack.py
@@ -31,7 +31,7 @@ def record_subscriber_data(data: list):
# data_tuple = (channel_id, pfp, channel_name, sub_count, time.strftime('%Y-%m-%d %H:%M:%S'))
server.insert_row(CONFIG["TABLES"]["daily"], DATA_SETTING["DAILY_HEADER"], (data_tuple[0], data_tuple[3]))
return
- elif refresh_daily:
+ if refresh_daily:
server.update_row(CONFIG["TABLES"]["daily"], "sub_count", sub_count, "channel_id", channel_id)
exclude_channels = fs.get_excluded_channels()
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage