From 037c355836084593b7830dad84bc066a58d9dae9 Mon Sep 17 00:00:00 2001 From: Dean Gardiner Date: Thu, 5 Dec 2013 16:23:21 +1300 Subject: [PATCH] Fixed bug with Library serialization when adding shows --- couchpotato/core/settings/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/settings/model.py b/couchpotato/core/settings/model.py index 82dbdbe..db9b540 100644 --- a/couchpotato/core/settings/model.py +++ b/couchpotato/core/settings/model.py @@ -182,7 +182,7 @@ class Library(Entity): if include_root: root_library = related_libraries.get(root_key) - orig_dict['root_library'] = root_library[0] if len(root_library) else None + orig_dict['root_library'] = root_library[0] if root_library else None return orig_dict