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

View File

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

View File

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

View File

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