diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2023-07-08 01:04:43 -0700 |
|---|---|---|
| committer | Pinapelz <donaldshan1@outlook.com> | 2023-07-08 01:04:43 -0700 |
| commit | a434be1cbe53d2d6e3e6b3870a15c7f33934a3a6 (patch) | |
| tree | b9716ccc6c88d8db279ab85001950b0089b8218e | |
| parent | 530a3ee1fb6c40bd37ebe053f5fe32b24ce5de0b (diff) | |
fix: incorrect 24h table column name
sub_count -> sub_diff
| -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() |
