display existing bookmarks in table

This commit is contained in:
Jakob Ketterl
2021-02-13 18:35:15 +01:00
parent 3e4ba42aab
commit 3b60e0b737
4 changed files with 46 additions and 4 deletions

View File

@@ -78,7 +78,10 @@ class Bookmarks(object):
return []
return []
def getBookmarks(self, range):
def getBookmarks(self, range=None):
self._refresh()
(lo, hi) = range
return [b for b in self.bookmarks if lo <= b.getFrequency() <= hi]
if range is None:
return self.bookmarks
else:
(lo, hi) = range
return [b for b in self.bookmarks if lo <= b.getFrequency() <= hi]