diff options
| -rw-r--r-- | nijitrack.py | 4 |
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() |
