From 0fbef43b712f4b90a70beb7e116e1b37788418e0 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 27 Feb 2016 12:03:06 +0530 Subject: [PATCH] only get required item keys --- oml/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/item/models.py b/oml/item/models.py index 2032280..8420ecb 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -733,7 +733,7 @@ class File(db.Model): prefix = os.sep.join(os.path.join(os.path.expanduser(prefs['libraryPath']), 'Books/').split('/')) if not self.item: return - j = self.item.json() + j = self.item.json(keys=['title', 'author', 'publisher', 'date', 'extension']) current_path = self.fullpath() if not os.path.exists(current_path):