Compare commits

...

4 Commits

Author SHA1 Message Date
1382fe5e2a Merge branch 'main' into main 2024-05-19 04:40:25 +00:00
5ec9fd21e9 Merge pull request 'Fix broken link to tags page on about page' (#191) from kdmurrayhpr/hpr_generator:main into main
Reviewed-on: rho_n/hpr_generator#191
2024-05-18 15:22:48 +00:00
d053ec253a Merge pull request 'Fixed four queries to correct the episode flags' (#192) from 190_clean_shows_when_not into main
Reviewed-on: rho_n/hpr_generator#192
2024-05-18 15:19:09 +00:00
Dave Morriss
db6c0bedaa 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.
2024-05-18 15:54:52 +01:00
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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