Don't show deleted templates
This commit is contained in:
parent
0391eed88e
commit
954b404031
@ -242,7 +242,12 @@ class Playlists(dbtables.PlaylistsTable):
|
||||
"""Returns a list of all templates ordered by name"""
|
||||
|
||||
return session.scalars(
|
||||
select(cls).filter(cls.is_template.is_(True)).order_by(cls.name)
|
||||
select(cls)
|
||||
.where(
|
||||
cls.is_template.is_(True),
|
||||
cls.deleted.is_not(True)
|
||||
)
|
||||
.order_by(cls.name)
|
||||
).all()
|
||||
|
||||
@classmethod
|
||||
|
||||
Loading…
Reference in New Issue
Block a user