Skip to content

Commit

Permalink
correct relevance test for programgenres
Browse files Browse the repository at this point in the history
The relevance column is used for sequencing but
it is not a number, but a character.  Testing
for > 0 results in not returning the entire list
of genres when the set is large (which can be
generated by (at least) the schedules direct
grabbers for some programs).

Fixes: #212
Fixes: #213

Signed-off-by: Peter Bennett <pbennett@mythtv.org>
  • Loading branch information
garybuhrmaster authored and bennettpeter committed Nov 6, 2020
1 parent 5852802 commit 428b90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/progdetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ void ProgDetails::loadPage(void)

query.prepare("SELECT genre FROM programgenres "
"WHERE chanid = :CHANID AND starttime = :STARTTIME "
"AND relevance > 0 ORDER BY relevance;");
"AND relevance <> '0' ORDER BY relevance;");
query.bindValue(":CHANID", m_progInfo.GetChanID());
query.bindValue(":STARTTIME", m_progInfo.GetScheduledStartTime());

Expand Down

0 comments on commit 428b90f

Please sign in to comment.