From c46745afd4075b59689da243ccec6ffccb7cce1e Mon Sep 17 00:00:00 2001 From: Lan <ldam@passcal.nmt.edu> Date: Thu, 18 May 2023 12:20:24 -0600 Subject: [PATCH] remove '' chan in pref_soh_chan --- sohstationviewer/view/main_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sohstationviewer/view/main_window.py b/sohstationviewer/view/main_window.py index 666c94cf5..6a3dcdb05 100755 --- a/sohstationviewer/view/main_window.py +++ b/sohstationviewer/view/main_window.py @@ -894,7 +894,8 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow): 'WHERE current=1') if len(rows) > 0: self.pref_soh_list_name = rows[0]['name'] - self.pref_soh_list = [t.strip() for t in rows[0]['IDs'].split(',')] + self.pref_soh_list = [t.strip() for t in rows[0]['IDs'].split(',') + if t.strip() != ''] self.pref_soh_list_data_type = rows[0]['dataType'] def resizeEvent(self, event): -- GitLab