Skip to content

Commit

Permalink
Fixed sorting issue on official rating #1850
Browse files Browse the repository at this point in the history
  • Loading branch information
mregni committed Aug 2, 2022
1 parent aeea8ca commit 9dcb982
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions EmbyStat.Common/Extensions/ShowExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static string GenerateCountQuery(IEnumerable<Filter> filters)
var query = $@"
SELECT COUNT() AS Count
FROM {Constants.Tables.Shows} as s
WHERE 1=1";
WHERE 1=1 ";
query = filters.Aggregate(query, (current, filter) => current + AddShowFilters(filter));

return query;
Expand All @@ -79,7 +79,7 @@ public static string GenerateFullShowQuery()
FROM {Constants.Tables.Shows} as s
LEFT JOIN {Constants.Tables.Seasons} AS se ON (s.Id = se.ShowId)
LEFT JOIN {Constants.Tables.Episodes} AS e ON (se.Id = e.SeasonId)
WHERE 1=1";
WHERE 1=1 ";
}

public static string GenerateFullShowWithGenresQuery()
Expand Down
2 changes: 1 addition & 1 deletion EmbyStat.Web/ClientApp/src/pages/shows/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function ShowTable() {
{label: 'COMMON.TOTALRUNTIME', field: 'cumulativeRunTimeTicks', sortable: false, align: 'right'},
{label: 'COMMON.SEASONS', field: 'seasons', sortable: true, align: 'right'},
{label: 'COMMON.EPISODES', field: 'episodes', sortable: true, align: 'right', width: 220},
{label: 'COMMON.OFFICIALRATING', field: 'officielRating', sortable: true, align: 'right'},
{label: 'COMMON.OFFICIALRATING', field: 'officialRating', sortable: true, align: 'right'},
{label: 'COMMON.LINKS', field: '', sortable: false, align: 'right'},
];

Expand Down

0 comments on commit 9dcb982

Please sign in to comment.