Skip to content

Commit

Permalink
fix tv show sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-klein committed Apr 18, 2018
1 parent 840da15 commit 3612d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/database_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_all_shows(self, status):
# query database
self.c.execute(
"SELECT DISTINCT Show_Title FROM Content WHERE Status=? \
ORDER BY (CASE WHEN Title LIKE 'the %' THEN substr(Title,5) ELSE Title END)",
ORDER BY (CASE WHEN Show_Title LIKE 'the %' THEN substr(Show_Title,5) ELSE Show_Title END)",
(status,))
# get results and return items as list
rows = self.c.fetchall()
Expand Down

0 comments on commit 3612d04

Please sign in to comment.