aboutsummaryrefslogtreecommitdiffstats
path: root/html_builders/tables.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 /html_builders/tables.py
parent416fc525a2c366fd21f7dfaaa32794793493e761 (diff)
fix: sql column configured in incorrect order
Diffstat (limited to 'html_builders/tables.py')
-rw-r--r--html_builders/tables.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/html_builders/tables.py b/html_builders/tables.py
index 2ffe443..a1d3a62 100644
--- a/html_builders/tables.py
+++ b/html_builders/tables.py
@@ -3,6 +3,8 @@ def generate_html_table(server, table, diff_table, headers=["Rank", "Liver", "Su
diff_cursor = server.get_connection().cursor()
diff_cursor.execute(query)
diff_data = diff_cursor.fetchall()
+ if len(diff_data) == 0:
+ return "N/A"
old_sub_count = int(diff_data[0][0])
current_sub_count = int(sub_count_str)
if old_sub_count > current_sub_count:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage