Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement challenge updates using order key (w/ CTFd patch) #7

Open
sudoBash418 opened this issue Dec 11, 2022 · 0 comments
Open

Comments

@sudoBash418
Copy link
Member

In theory, it should be possible to patch CTFd to:

  1. add an "order" integer field to tags/hints/flags/files
  2. use that field to sort the objects displayed to players

This would make the process of updating these objects much cleaner:
Instead of re-creating entire lists (or giving up on ordering, as I have for files), we would only need to reassign the order fields.

This would also make it simpler to display pending changes more accurately in cctk.

The real work would be in patching CTFd to support this, but hopefully that's straightfoward enough. knock on wood

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

No branches or pull requests

1 participant