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 /html_builders/tables.py | |
| parent | 416fc525a2c366fd21f7dfaaa32794793493e761 (diff) | |
fix: sql column configured in incorrect order
Diffstat (limited to 'html_builders/tables.py')
| -rw-r--r-- | html_builders/tables.py | 2 |
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: |
