Merge branch 'dev' into dev-ars

This commit is contained in:
Iron_Felix 2025-11-22 08:51:13 +03:00
commit b400f22844
5 changed files with 25 additions and 21 deletions

View file

@ -267,7 +267,7 @@ func (s Server) GetTitles(ctx context.Context, request oapi.GetTitlesRequestObje
if request.Params.Sort != nil {
switch string(*request.Params.Sort) {
case "year":
tmp := fmt.Sprint("%d", *t.ReleaseYear)
tmp := fmt.Sprint(*t.ReleaseYear)
new_cursor.Param = &tmp
case "rating":
tmp := strconv.FormatFloat(*t.Rating, 'f', -1, 64)