aboutsummaryrefslogtreecommitdiffstats
path: root/html_builders/tables.py
diff options
context:
space:
mode:
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