Fixed four queries to correct the episode flags
templates/queries-correspondent-mysql.tpl.html, templates/queries-correspondent-sqlite.tpl.html, templates/queries-index-mysql.tpl.html, templates/queries-index-sqlite.tpl.html: All SQL queries used a CASE expression to return either 'Explicit' or 'Clean' depending on the 0/1 setting of the 'explicit' column. However, the TT² templates using these queries were written to expect the numeric form. All the 'CASE' expressions have been replaced by the field name and now the correct flag is being displayed.
This commit is contained in:
parent
5b2b2ce6d0
commit
db6c0bedaa
@ -1,7 +1,7 @@
|
||||
<!--% query_hpr_shows = '
|
||||
SELECT
|
||||
eps.id,
|
||||
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
||||
eps.explicit,
|
||||
eps.date, eps.license, eps.duration,
|
||||
eps.title, eps.summary, eps.tags,
|
||||
eps.notes,
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!--% query_hpr_shows = '
|
||||
SELECT
|
||||
eps.id,
|
||||
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit,
|
||||
eps.explicit,
|
||||
eps.date, eps.license, eps.duration,
|
||||
eps.title, eps.summary, eps.tags,
|
||||
eps.notes,
|
||||
|
@ -41,7 +41,7 @@
|
||||
<!--% query_last_5_weeks_episodes = '
|
||||
SELECT
|
||||
eps.id,
|
||||
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
||||
eps.explicit,
|
||||
eps.date, eps.license, eps.title, eps.summary,
|
||||
eps.duration, eps.notes, eps.tags,
|
||||
hosts.hostid,
|
||||
|
@ -41,7 +41,7 @@
|
||||
<!--% query_last_5_weeks_episodes = '
|
||||
SELECT
|
||||
eps.id,
|
||||
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
||||
eps.explicit,
|
||||
eps.date, eps.license, eps.title, eps.summary,
|
||||
eps.duration, eps.notes, eps.tags,
|
||||
hosts.hostid,
|
||||
|
Loading…
Reference in New Issue
Block a user