mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 13:24:48 -04:00
Add a Type enum to Tags for artwork/ebook
This commit is contained in:
parent
ee29c526f8
commit
402dae95ff
7 changed files with 62 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue