Switch qrunproxy to generated mock show, remove show.json
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
import "fmt"
|
||||
|
||||
type Show struct {
|
||||
Tracks []*Track `json:"tracks"`
|
||||
@@ -39,18 +36,6 @@ type TriggerTarget struct {
|
||||
Hook string `json:"hook"`
|
||||
}
|
||||
|
||||
func loadMockShow() (*Show, error) {
|
||||
buf, err := staticFS.ReadFile("static/show.json")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var show Show
|
||||
if err := json.Unmarshal(buf, &show); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &show, nil
|
||||
}
|
||||
|
||||
func isValidEventForBlock(block *Block, event string) bool {
|
||||
if block.Type == "cue" {
|
||||
return event == "GO"
|
||||
|
||||
Reference in New Issue
Block a user