fix sort by oxdbId, fixes #1791
This commit is contained in:
parent
620890389d
commit
d5c50192f4
1 changed files with 2 additions and 0 deletions
|
@ -742,6 +742,7 @@ class Item(models.Model):
|
||||||
'duration',
|
'duration',
|
||||||
'hue',
|
'hue',
|
||||||
'id',
|
'id',
|
||||||
|
'oxdbId',
|
||||||
'lightness',
|
'lightness',
|
||||||
'modified',
|
'modified',
|
||||||
'numberofannotations',
|
'numberofannotations',
|
||||||
|
@ -815,6 +816,7 @@ class Item(models.Model):
|
||||||
|
|
||||||
#sort keys based on database, these will always be available
|
#sort keys based on database, these will always be available
|
||||||
s.itemId = self.itemId.replace('0x', 'xx')
|
s.itemId = self.itemId.replace('0x', 'xx')
|
||||||
|
s.oxdbId = self.oxdbId
|
||||||
if not settings.USE_IMDB:
|
if not settings.USE_IMDB:
|
||||||
s.itemId = ox.sort_string(str(ox.fromAZ(s.itemId)))
|
s.itemId = ox.sort_string(str(ox.fromAZ(s.itemId)))
|
||||||
s.modified = self.modified or datetime.now()
|
s.modified = self.modified or datetime.now()
|
||||||
|
|
Loading…
Reference in a new issue