mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 03:08:53 +00:00
Update queries to use root_categories table
This commit is contained in:
@@ -972,8 +972,8 @@ class ProcessReleases
|
||||
SELECT SQL_NO_CACHE c.id AS id,
|
||||
CASE WHEN c.minsizetoformrelease = 0 THEN cp.minsizetoformrelease ELSE c.minsizetoformrelease END AS minsize
|
||||
FROM categories c
|
||||
INNER JOIN categories cp ON cp.id = c.parentid
|
||||
WHERE c.parentid IS NOT NULL'
|
||||
INNER JOIN root_categories cp ON cp.id = c.root_categories_id
|
||||
WHERE c.root_categories_id IS NOT NULL'
|
||||
);
|
||||
|
||||
foreach ($categories as $category) {
|
||||
|
||||
Reference in New Issue
Block a user