Update placement to return string id
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-07-06 21:08:13 -04:00
parent ef6d4c19bb
commit 208f5c0b75
4 changed files with 9 additions and 9 deletions

View File

@@ -888,7 +888,7 @@ const docTemplate = `{
"type": "boolean"
},
"id": {
"type": "integer"
"type": "string"
},
"map": {
"$ref": "#/definitions/Map"
@@ -911,7 +911,7 @@ const docTemplate = `{
"type": "object",
"properties": {
"id": {
"type": "integer"
"type": "string"
},
"placement": {
"type": "integer"

View File

@@ -881,7 +881,7 @@
"type": "boolean"
},
"id": {
"type": "integer"
"type": "string"
},
"map": {
"$ref": "#/definitions/Map"
@@ -904,7 +904,7 @@
"type": "object",
"properties": {
"id": {
"type": "integer"
"type": "string"
},
"placement": {
"type": "integer"

View File

@@ -166,7 +166,7 @@ definitions:
has_bot:
type: boolean
id:
type: integer
type: string
map:
$ref: '#/definitions/Map'
mode_id:
@@ -181,7 +181,7 @@ definitions:
TimePlacement:
properties:
id:
type: integer
type: string
placement:
type: integer
type: object

View File

@@ -7,8 +7,8 @@ import (
)
type TimePlacement struct {
ID int64 `json:"id"`
Placement int64 `json:"placement"`
ID string `json:"id"`
Placement int64 `json:"placement"`
} // @name TimePlacement
func (r TimePlacement) FromGRPC(rank *times.RankResponse) *TimePlacement {
@@ -16,7 +16,7 @@ func (r TimePlacement) FromGRPC(rank *times.RankResponse) *TimePlacement {
return nil
}
return &TimePlacement{
ID: rank.ID,
ID: strconv.FormatInt(rank.ID, 10),
Placement: rank.Rank,
}
}