From 4460e3f86e7fe80ad7d874d2129e3a2b506dbc5c Mon Sep 17 00:00:00 2001
From: Guy Davis <guydavis.ca@gmail.com>
Date: Mon, 14 Oct 2024 10:11:52 -0600
Subject: [PATCH] Ignore superfluous output from Chia connection listing.

---
 scripts/pull_3rd_party_libs.sh | 6 +++---
 web/models/chia.py             | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/pull_3rd_party_libs.sh b/scripts/pull_3rd_party_libs.sh
index 96a7b883..d745d432 100755
--- a/scripts/pull_3rd_party_libs.sh
+++ b/scripts/pull_3rd_party_libs.sh
@@ -13,9 +13,9 @@ LEAFLET_VERSION=1.9.4
 
 # List of other css/js links
 LIST="
-https://cdn.datatables.net/2.1.4/css/dataTables.bootstrap5.css
-https://cdn.datatables.net/2.1.4/js/dataTables.bootstrap5.js
-https://cdn.datatables.net/2.1.4/js/dataTables.min.js
+https://cdn.datatables.net/2.1.8/css/dataTables.bootstrap5.css
+https://cdn.datatables.net/2.1.8/js/dataTables.bootstrap5.js
+https://cdn.datatables.net/2.1.8/js/dataTables.min.js
 https://cdn.jsdelivr.net/npm/chart.js@4.4.4/dist/chart.umd.js.map
 https://cdn.jsdelivr.net/npm/chart.js@4.4.4/dist/chart.umd.min.js
 https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon@1.3.1/dist/chartjs-adapter-luxon.umd.min.js
diff --git a/web/models/chia.py b/web/models/chia.py
index 05616af7..fc996aae 100644
--- a/web/models/chia.py
+++ b/web/models/chia.py
@@ -775,7 +775,7 @@ def parse_chia(self, connection, blockchain, geoip_cache, lang):
                             'mib_up': float(vals[7].split('|')[0]),
                             'mib_down': float(vals[7].split('|')[1])
                         }
-                        if len(vals) > 9: # HDDCoin keeps SBHeight and Hash on same line
+                        if len(vals) > 9 and vals[8] != '-Trusted:': # HDDCoin keeps SBHeight and Hash on same line
                             connection['height'] = vals[8]
                             connection['hash'] = vals[9]
                         try: