aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-07-08 01:04:43 -0700
committerPinapelz <donaldshan1@outlook.com>2023-07-08 01:04:43 -0700
commita434be1cbe53d2d6e3e6b3870a15c7f33934a3a6 (patch)
treeb9716ccc6c88d8db279ab85001950b0089b8218e
parent530a3ee1fb6c40bd37ebe053f5fe32b24ce5de0b (diff)
fix: incorrect 24h table column name
sub_count -> sub_diff
-rw-r--r--nijitrack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nijitrack.py b/nijitrack.py
index 883e8a7..509e9d3 100644
--- a/nijitrack.py
+++ b/nijitrack.py
@@ -30,8 +30,8 @@ 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
- if refresh_daily:
- server.update_row(CONFIG["TABLES"]["daily"], "sub_count", sub_count, "channel_id", channel_id)
+ elif refresh_daily:
+ server.update_row(CONFIG["TABLES"]["daily"], "sub_diff", sub_count, "channel_id", channel_id)
exclude_channels = fs.get_excluded_channels()
refresh_daily = fs.check_diff_refresh()
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage