aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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