From 2f7e8a078038e672e480c25463cde7bbd0ce47b5 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 1 Dec 2019 01:20:58 +0100 Subject: [PATCH] year db is only 4 chars long --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index f625fb80..ba98cb1e 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1047,7 +1047,7 @@ class Item(models.Model): value = len(value) set_value(s, name, value) elif sort_type == 'year': - value = self.get(source) + value = self.get(source)[:4] set_value(s, name, value) elif sort_type == 'date': value = value_ = self.get(source)