Don't show deleted templates

This commit is contained in:
Keith Edmunds 2024-12-14 14:56:27 +00:00
parent 0391eed88e
commit 954b404031

View File

@ -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