forked from 0x2620/pandora
year db is only 4 chars long
This commit is contained in:
parent
f311062b5a
commit
2f7e8a0780
1 changed files with 1 additions and 1 deletions
|
@ -1047,7 +1047,7 @@ class Item(models.Model):
|
||||||
value = len(value)
|
value = len(value)
|
||||||
set_value(s, name, value)
|
set_value(s, name, value)
|
||||||
elif sort_type == 'year':
|
elif sort_type == 'year':
|
||||||
value = self.get(source)
|
value = self.get(source)[:4]
|
||||||
set_value(s, name, value)
|
set_value(s, name, value)
|
||||||
elif sort_type == 'date':
|
elif sort_type == 'date':
|
||||||
value = value_ = self.get(source)
|
value = value_ = self.get(source)
|
||||||
|
|
Loading…
Reference in a new issue