aboutsummaryrefslogtreecommitdiffstats
path: root/nijitrack.py
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-07-08 02:12:49 -0700
committerPinapelz <donaldshan1@outlook.com>2023-07-08 02:12:49 -0700
commit923399ed20c493fbcd607b163a699d397605e61c (patch)
tree8842830441f82d2b392216ae846defd76c955874 /nijitrack.py
parent416fc525a2c366fd21f7dfaaa32794793493e761 (diff)
fix: sql column configured in incorrect order
Diffstat (limited to 'nijitrack.py')
-rw-r--r--nijitrack.py4
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)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage