From 250f07ffa7084f0f6c4afec0b2fa4ada5e0f0036 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 14 Aug 2013 16:55:57 +0200 Subject: [PATCH] Optimize dashboard query --- couchpotato/core/plugins/dashboard/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/dashboard/main.py b/couchpotato/core/plugins/dashboard/main.py index df21fefa..939b4154 100644 --- a/couchpotato/core/plugins/dashboard/main.py +++ b/couchpotato/core/plugins/dashboard/main.py @@ -46,7 +46,7 @@ class Dashboard(Plugin): q = db.query(Movie).join((subq, subq.c.id == Movie.id)) \ .options(joinedload_all('releases')) \ - .options(joinedload_all('profile.types')) \ + .options(joinedload_all('profile')) \ .options(joinedload_all('library.titles')) \ .options(joinedload_all('library.files')) \ .options(joinedload_all('status')) \