From 9db6e532a55c4ebee45d1250134a8add18bf837b Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Fri, 22 Sep 2023 17:46:07 +0300 Subject: feat: completion count on summary for each cm entry (#63) Former-commit-id: 38779e7cbddb7e850a5f4a56565938b3dcb14857 --- backend/models/models.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'backend/models/models.go') diff --git a/backend/models/models.go b/backend/models/models.go index 35929c1..e5d92fb 100644 --- a/backend/models/models.go +++ b/backend/models/models.go @@ -64,12 +64,13 @@ type MapHistory struct { } type MapRoute struct { - RouteID int `json:"route_id"` - Category Category `json:"category"` - History MapHistory `json:"history"` - Rating float32 `json:"rating"` - Description string `json:"description"` - Showcase string `json:"showcase"` + RouteID int `json:"route_id"` + Category Category `json:"category"` + History MapHistory `json:"history"` + Rating float32 `json:"rating"` + CompletionCount int `json:"completion_count"` + Description string `json:"description"` + Showcase string `json:"showcase"` } type MapRecords struct { -- cgit v1.2.3