Skip to content

Commit

Permalink
correct comparison field names
Browse files Browse the repository at this point in the history
  • Loading branch information
marnym committed Nov 11, 2023
1 parent 488a50e commit a4fde8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/pocketbase/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
)

type Comparison struct {
Comparison1 string `json:"comparison1"`
Comparison2 string `json:"comparison2"`
Frames1 string `json:"frames1"`
Frames2 string `json:"frames2"`
}

func main() {
Expand Down Expand Up @@ -57,8 +57,8 @@ func inferAndScore(app *pocketbase.PocketBase, record *models.Record, fileName s

log.Printf("calculating score for video: %s", record.Id)
reqBody, err := json.Marshal(Comparison{
Comparison1: string(body),
Comparison2: string(body),
Frames1: string(body),
Frames2: string(body),
})
if err != nil {
log.Printf("comparison to json failed: %v", err)
Expand Down

0 comments on commit a4fde8f

Please sign in to comment.