Fix - removed unnecessary first query

setSortable forces refresh itself
This commit is contained in:
Petr Kalis 2022-06-03 10:20:33 +02:00
parent 2339e41b4c
commit 688400ad7b

View file

@ -523,10 +523,6 @@ class SyncRepresentationSummaryModel(_SyncRepresentationModel):
self.query = self.get_query()
self.default_query = list(self.get_query())
representations = self.dbcon.aggregate(pipeline=self.query,
allowDiskUse=True)
self.refresh(representations)
self.timer = QtCore.QTimer()
self.timer.timeout.connect(self.tick)
self.timer.start(self.REFRESH_SEC)
@ -1003,9 +999,6 @@ class SyncRepresentationDetailModel(_SyncRepresentationModel):
self.sort_criteria = self.DEFAULT_SORT
self.query = self.get_query()
representations = self.dbcon.aggregate(pipeline=self.query,
allowDiskUse=True)
self.refresh(representations)
self.timer = QtCore.QTimer()
self.timer.timeout.connect(self.tick)