Skip to content

Commit

Permalink
fix - challenges with "helper" tasks are now solvable via labctl again
Browse files Browse the repository at this point in the history
  • Loading branch information
iximiuz committed Dec 15, 2024
1 parent 5a47862 commit a15eec6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ require (
golang.org/x/crypto v0.31.0
golang.org/x/sync v0.10.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
)

require (
Expand Down Expand Up @@ -51,5 +52,4 @@ require (
golang.org/x/sys v0.28.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/text v0.21.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
1 change: 1 addition & 0 deletions internal/api/playgrounds.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Playground struct {
Tabs []PlaygroundTab `yaml:"tabs" json:"tabs"`
InitTasks map[string]InitTask `yaml:"initTasks" json:"initTasks"`
InitConditions InitConditions `yaml:"initConditions" json:"initConditions"`
RegistryAuth string `yaml:"registryAuth,omitempty" json:"registryAuth,omitempty"`
}

func (c *Client) GetPlayground(ctx context.Context, name string) (*Playground, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/api/plays.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (p *Play) CountCompletedInitTasks() int {

func (p *Play) IsCompletable() bool {
for _, task := range p.Tasks {
if task.Status != PlayTaskStatusCompleted {
if !task.Helper && task.Status != PlayTaskStatusCompleted {
return false
}
}
Expand Down

0 comments on commit a15eec6

Please sign in to comment.