Remove profile from dashboard list
This commit is contained in:
@@ -46,7 +46,6 @@ class Dashboard(Plugin):
|
|||||||
|
|
||||||
q = db.query(Movie).join((subq, subq.c.id == Movie.id)) \
|
q = db.query(Movie).join((subq, subq.c.id == Movie.id)) \
|
||||||
.options(joinedload_all('releases')) \
|
.options(joinedload_all('releases')) \
|
||||||
.options(joinedload_all('profile')) \
|
|
||||||
.options(joinedload_all('library.titles')) \
|
.options(joinedload_all('library.titles')) \
|
||||||
.options(joinedload_all('library.files')) \
|
.options(joinedload_all('library.files')) \
|
||||||
.options(joinedload_all('status')) \
|
.options(joinedload_all('status')) \
|
||||||
@@ -65,7 +64,7 @@ class Dashboard(Plugin):
|
|||||||
|
|
||||||
movies = []
|
movies = []
|
||||||
for movie in all_movies:
|
for movie in all_movies:
|
||||||
pp = profile_pre.get(movie.profile.id)
|
pp = profile_pre.get(movie.profile_id)
|
||||||
eta = movie.library.info.get('release_date', {}) or {}
|
eta = movie.library.info.get('release_date', {}) or {}
|
||||||
coming_soon = False
|
coming_soon = False
|
||||||
|
|
||||||
@@ -86,8 +85,6 @@ class Dashboard(Plugin):
|
|||||||
|
|
||||||
if coming_soon:
|
if coming_soon:
|
||||||
temp = movie.to_dict({
|
temp = movie.to_dict({
|
||||||
'profile': {'types': {}},
|
|
||||||
'releases': {'files':{}, 'info': {}},
|
|
||||||
'library': {'titles': {}, 'files':{}},
|
'library': {'titles': {}, 'files':{}},
|
||||||
'files': {},
|
'files': {},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user