@@ -193,7 +193,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
193193 "group_by" : LAST_GROUP_BY ,
194194 "last_order_by" : "1" ,
195195 "last_order_to" : 1 ,
196- "tracking_column: " : COL_TIME
196+ "tracking_column" : COL_TIME
197197 },
198198 TAB_NODES : {
199199 "name" : "nodes" ,
@@ -217,7 +217,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
217217 "header_labels" : [],
218218 "last_order_by" : "1" ,
219219 "last_order_to" : 1 ,
220- "tracking_column: " : COL_TIME
220+ "tracking_column" : COL_N_UPTIME
221221 },
222222 TAB_RULES : {
223223 "name" : "rules" ,
@@ -239,7 +239,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
239239 "header_labels" : [],
240240 "last_order_by" : "2" ,
241241 "last_order_to" : 0 ,
242- "tracking_column: " : COL_R_NAME
242+ "tracking_column" : COL_R_NAME
243243 },
244244 TAB_HOSTS : {
245245 "name" : "hosts" ,
@@ -254,7 +254,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
254254 "header_labels" : [],
255255 "last_order_by" : "2" ,
256256 "last_order_to" : 1 ,
257- "tracking_column: " : COL_TIME
257+ "tracking_column" : COL_TIME
258258 },
259259 TAB_PROCS : {
260260 "name" : "procs" ,
@@ -269,7 +269,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
269269 "header_labels" : [],
270270 "last_order_by" : "2" ,
271271 "last_order_to" : 1 ,
272- "tracking_column: " : COL_TIME
272+ "tracking_column" : COL_TIME
273273 },
274274 TAB_ADDRS : {
275275 "name" : "addrs" ,
@@ -284,7 +284,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
284284 "header_labels" : [],
285285 "last_order_by" : "2" ,
286286 "last_order_to" : 1 ,
287- "tracking_column: " : COL_TIME
287+ "tracking_column" : COL_TIME
288288 },
289289 TAB_PORTS : {
290290 "name" : "ports" ,
@@ -299,7 +299,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
299299 "header_labels" : [],
300300 "last_order_by" : "2" ,
301301 "last_order_to" : 1 ,
302- "tracking_column: " : COL_TIME
302+ "tracking_column" : COL_TIME
303303 },
304304 TAB_USERS : {
305305 "name" : "users" ,
@@ -314,7 +314,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
314314 "header_labels" : [],
315315 "last_order_by" : "2" ,
316316 "last_order_to" : 1 ,
317- "tracking_column: " : COL_TIME
317+ "tracking_column" : COL_TIME
318318 },
319319 TAB_NETSTAT : {
320320 "name" : "sockets" ,
@@ -341,7 +341,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
341341 "header_labels" : [],
342342 "last_order_by" : "2" ,
343343 "last_order_to" : 1 ,
344- "tracking_column: " : COL_TIME
344+ "tracking_column" : COL_NET_METADATA
345345 },
346346 TAB_FIREWALL : {
347347 "name" : "firewall" ,
@@ -356,7 +356,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
356356 "header_labels" : [],
357357 "last_order_by" : "2" ,
358358 "last_order_to" : 0 ,
359- "tracking_column: " : COL_TIME
359+ "tracking_column" : COL_TIME
360360 },
361361 TAB_ALERTS : {
362362 "name" : "alerts" ,
@@ -375,7 +375,7 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
375375 "header_labels" : [],
376376 "last_order_by" : "1" ,
377377 "last_order_to" : 0 ,
378- "tracking_column: " : COL_TIME
378+ "tracking_column" : COL_TIME
379379 }
380380 }
381381
@@ -664,15 +664,16 @@ def __init__(self, parent=None, address=None, db=None, dbname="db", appicon=None
664664 model = GenericTableModel ("nodes" , self .TABLES [self .TAB_NODES ]['header_labels' ]),
665665 verticalScrollBar = self .verticalScrollBar ,
666666 sort_direction = self .SORT_ORDER [1 ],
667- delegate = self .TABLES [self .TAB_NODES ]['delegate' ])
667+ delegate = self .TABLES [self .TAB_NODES ]['delegate' ],
668+ tracking_column = self .TABLES [self .TAB_NODES ]['tracking_column' ])
668669 self .TABLES [self .TAB_RULES ]['view' ] = self ._setup_table (QtWidgets .QTableView , self .rulesTable , "rules" ,
669670 fields = self .TABLES [self .TAB_RULES ]['display_fields' ],
670671 model = GenericTableModel ("rules" , self .TABLES [self .TAB_RULES ]['header_labels' ]),
671672 verticalScrollBar = self .rulesScrollBar ,
672673 delegate = self .TABLES [self .TAB_RULES ]['delegate' ],
673674 order_by = "2" ,
674675 sort_direction = self .SORT_ORDER [0 ],
675- tracking_column = self .COL_R_NAME )
676+ tracking_column = self .TABLES [ self . TAB_RULES ][ 'tracking_column' ] )
676677 self .TABLES [self .TAB_FIREWALL ]['view' ] = self ._setup_table (QtWidgets .QTableView , self .fwTable , "firewall" ,
677678 model = FirewallTableModel ("firewall" ),
678679 verticalScrollBar = None ,
@@ -740,7 +741,7 @@ def __init__(self, parent=None, address=None, db=None, dbname="db", appicon=None
740741 delegate = self .TABLES [self .TAB_NETSTAT ]['delegate' ],
741742 order_by = "2" ,
742743 limit = self ._get_limit (),
743- tracking_column = self .COL_NET_METADATA
744+ tracking_column = self .TABLES [ self . TAB_NETSTAT ][ 'tracking_column' ]
744745 )
745746
746747 self .TABLES [self .TAB_NODES ]['label' ] = self .nodesLabel
0 commit comments