Add a Type enum to Tags for artwork/ebook

This commit is contained in:
Mike Colagrosso 2024-06-25 18:25:31 -06:00 committed by Alex Cabal
parent ee29c526f8
commit 402dae95ff
7 changed files with 62 additions and 10 deletions

View file

@ -178,10 +178,10 @@ class Library{
*/
public static function GetTags(): array{
$tags = Db::Query('
SELECT distinct t.*
SELECT *
from Tags t
inner join EbookTags et using (TagId)
order by t.Name
where Type = "ebook"
order by Name
', [], EbookTag::class);
return $tags;