From 923399ed20c493fbcd607b163a699d397605e61c Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 8 Jul 2023 02:12:49 -0700 Subject: fix: sql column configured in incorrect order --- nijitrack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nijitrack.py') 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) -- cgit v1.2.3