Column sorting (#838)

This commit is contained in:
dgtlmoon
2022-08-16 10:45:36 +02:00
committed by GitHub
parent 9976f3f969
commit 269e3bb7c5
5 changed files with 43 additions and 5 deletions

View File

@@ -83,6 +83,13 @@ class model(dict):
return False
@property
def label(self):
# Used for sorting
if self['title']:
return self['title']
return self['url']
@property
def last_changed(self):
# last_changed will be the newest snapshot, but when we have just one snapshot, it should be 0