Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
horcu committed Dec 9, 2024
1 parent 80c5913 commit d2cf6f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (

require (
github.com/google/uuid v1.6.0
github.com/horcu/pm-models v0.0.0-20241204145326-4222a19159f2
github.com/horcu/pm-models v0.0.0-20241209194023-2bd85d45c253
)

require (
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ github.com/horcu/pm-models v0.0.0-20241202201802-dcd4d040832b h1:kRkeaJnCuuThIxf
github.com/horcu/pm-models v0.0.0-20241202201802-dcd4d040832b/go.mod h1:oGBgHVh9IPvvNulqrHqDZaAj4SRHGZSvO5Q+5AefMNM=
github.com/horcu/pm-models v0.0.0-20241204145326-4222a19159f2 h1:wpFoNSdySsRVdNc3k9b+a604UPFhqc8c6GVvjz5iwj0=
github.com/horcu/pm-models v0.0.0-20241204145326-4222a19159f2/go.mod h1:oGBgHVh9IPvvNulqrHqDZaAj4SRHGZSvO5Q+5AefMNM=
github.com/horcu/pm-models v0.0.0-20241204174105-aee7697a2203 h1:eRfriKHGOmoNWDnJFvcEvHvBr21ZMaQp7H7gsU2H86E=
github.com/horcu/pm-models v0.0.0-20241204174105-aee7697a2203/go.mod h1:oGBgHVh9IPvvNulqrHqDZaAj4SRHGZSvO5Q+5AefMNM=
github.com/horcu/pm-models v0.0.0-20241209194023-2bd85d45c253 h1:g5JxdhoLfiblFcyDJGSYAjnK0+59RcY22KQlNL4fmlM=
github.com/horcu/pm-models v0.0.0-20241209194023-2bd85d45c253/go.mod h1:oGBgHVh9IPvvNulqrHqDZaAj4SRHGZSvO5Q+5AefMNM=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo=
Expand Down
22 changes: 13 additions & 9 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,19 @@ func (store *Store) getAllGames() ([]*models.Game, error) {

// add parsed Game to list
games = append(games, &models.Game{
Bin: g["bin"].(string),
IsDaytime: g["is_daytime"].(bool),
FirstDayCompleted: g["first_day_completed"].(bool),
CurrentStep: step.Bin,
Info: g["info"].(*models.ServerInfo),
Status: g["status"].(string),
StartTime: g["start_time"].(string),
EndTime: g["end_time"].(string),
Creator: creator,
Bin: g["bin"].(string),
GameEvents: models.Events{
IsDaytime: g["is_daytime"].(bool),
FirstDayCompleted: g["first_day_completed"].(bool),
},
CurrentStep: step.Bin,
Info: g["info"].(*models.ServerInfo),
Status: g["status"].(string),
Sync: &models.TimeSync{
StartTime: g["start_time"].(string),
EndTime: g["end_time"].(string),
},
Creator: creator,
})
}
return games, nil
Expand Down

0 comments on commit d2cf6f8

Please sign in to comment.