Skip to content

Commit

Permalink
gdqcli: Filter on runner first
Browse files Browse the repository at this point in the history
Hosts will have multiple events, but runners usually only have one or
two. This will ensure the new schedule contains the fewest possible
events to further filter.
  • Loading branch information
daenney committed Dec 5, 2020
1 parent e1942e1 commit 9ce7c32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/gdqcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ func main() {
log.Fatalln(err)
}

if *host != "" {
schedule = schedule.ForHost(*host)
}
if *runner != "" {
schedule = schedule.ForRunner(*runner)
}
if *host != "" {
schedule = schedule.ForHost(*host)
}
if *title != "" {
schedule = schedule.ForTitle(*title)
}
Expand Down

0 comments on commit 9ce7c32

Please sign in to comment.