Skip to content

Allow admins to search for their tracks - #12

Merged
stgraber merged 1 commit into
nsec:mainfrom
MaxNad:challenge_filter
May 17, 2026
Merged

Allow admins to search for their tracks#12
stgraber merged 1 commit into
nsec:mainfrom
MaxNad:challenge_filter

Conversation

@MaxNad

@MaxNad MaxNad commented May 16, 2026

Copy link
Copy Markdown
Contributor

During the competition, a lot of challenge designers are monitoring solves on their tracks.
This allows designers to filter the history and monitor-flags outputs for their flag IDs.

@stgraber

Copy link
Copy Markdown
Member

@MaxNad DCO

@MaxNad
MaxNad force-pushed the challenge_filter branch from d063156 to 4696fd4 Compare May 16, 2026 17:36
@MaxNad

MaxNad commented May 16, 2026

Copy link
Copy Markdown
Contributor Author

Done

Comment thread cmd/askgod/cmd_admin_history.go Outdated

func (c *client) cmdAdminHistory(ctx context.Context, _ *cli.Command) error {
func (c *client) cmdAdminHistory(ctx context.Context, cmd *cli.Command) error {
trackIDs := cmd.Int64Slice("tracks")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line break

Comment thread cmd/askgod/cmd_admin_monitor.go Outdated

func (c *client) cmdAdminMonitorFlags(_ context.Context, _ *cli.Command) error {
func (c *client) cmdAdminMonitorFlags(_ context.Context, cmd *cli.Command) error {
trackIDs := cmd.Int64Slice("tracks")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line break

@stgraber

Copy link
Copy Markdown
Member

I'm a bit confused though, you're using tracksID but then compare it to the flagid, so looks more like a list of flag IDs?

Signed-off-by: MaxNad <maxime.nadeau@outlook.com>
@stgraber
stgraber force-pushed the challenge_filter branch from cc56b06 to e2fe679 Compare May 17, 2026 12:45
@stgraber
stgraber merged commit ec4a243 into nsec:main May 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants