diff options
| author | Pinapelz <donaldshan1@outlook.com> | 2023-07-08 02:12:49 -0700 |
|---|---|---|
| committer | Pinapelz <donaldshan1@outlook.com> | 2023-07-08 02:12:49 -0700 |
| commit | 923399ed20c493fbcd607b163a699d397605e61c (patch) | |
| tree | 8842830441f82d2b392216ae846defd76c955874 /nijitrack.py | |
| parent | 416fc525a2c366fd21f7dfaaa32794793493e761 (diff) | |
fix: sql column configured in incorrect order
Diffstat (limited to 'nijitrack.py')
| -rw-r--r-- | nijitrack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nijitrack.py b/nijitrack.py index 509e9d3..1a0a4d2 100644 --- a/nijitrack.py +++ b/nijitrack.py @@ -31,7 +31,7 @@ def record_subscriber_data(data: list): server.insert_row(CONFIG["TABLES"]["daily"], DATA_SETTING["DAILY_HEADER"], (data_tuple[0], data_tuple[3])) return elif refresh_daily: - server.update_row(CONFIG["TABLES"]["daily"], "sub_diff", sub_count, "channel_id", channel_id) + server.update_row(CONFIG["TABLES"]["daily"], "channel_id", channel_id, "sub_diff", sub_count) exclude_channels = fs.get_excluded_channels() refresh_daily = fs.check_diff_refresh() @@ -123,5 +123,5 @@ if __name__ == "__main__": else: channel_data, inactive_channels = holodex_generation(server) fs.update_excluded_channels(inactive_channels) - generate_individual_pages(server, channel_data) builder.build_ranking_page(server, CONFIG, combine_excluded_channel_ids(inactive_channels, fs.get_excluded_channels())) + generate_individual_pages(server, channel_data) |
