Skip to content

Commit

Permalink
fix(subsonic): change order of fromYear toYear query
Browse files Browse the repository at this point in the history
closes #208
  • Loading branch information
sentriz committed Apr 2, 2022
1 parent 01747c8 commit d7655cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/ctrlsubsonic/handlers_by_folder.go
Expand Up @@ -117,8 +117,8 @@ func (c *Controller) ServeGetAlbumList(r *http.Request) *spec.Response {
case "byYear":
q = q.Where(
"tag_year BETWEEN ? AND ?",
params.GetOrInt("toYear", 2200),
params.GetOrInt("fromYear", 1800))
params.GetOrInt("fromYear", 1800),
params.GetOrInt("toYear", 2200))
q = q.Order("tag_year")
case "byGenre":
genre, _ := params.Get("genre")
Expand Down

0 comments on commit d7655cb

Please sign in to comment.