fix
This commit is contained in:
parent
d0c3547ef6
commit
ff84b00526
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue