aboutsummaryrefslogtreecommitdiffstats
path: root/nijitrack.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 /nijitrack.py
parent645cacc6790852bad9eb04755b911bd432200c1c (diff)
fix: daily table not updating
Diffstat (limited to 'nijitrack.py')
-rw-r--r--nijitrack.py2
1 files changed, 1 insertions, 1 deletions
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