Attack/Defence: CTF Problems #53#76
Open
tripathiji1312 wants to merge 3 commits into
Open
Conversation
tripathiji1312
marked this pull request as draft
February 23, 2025 07:48
tripathiji1312
marked this pull request as ready for review
February 24, 2025 09:59
ThEditor
requested changes
Feb 25, 2025
| tags = fields.SmallIntField(default=1) # by default misc, 16 tag limit | ||
|
|
||
| difficulty_level = fields.SmallIntField(default=1) | ||
| problem_type = fields.TextField(default="jeopardy") #Can use enum too |
|
|
||
| class AttackDefProblem(Model): | ||
| id = fields.IntField(pk=True) | ||
| team: fields.ForeignKeyRelation[Team] = fields.ForeignKeyField( |
There was a problem hiding this comment.
attack_def_team: fields.ForeignKeyRelation[AttackDefTeam] = fields.ForeignKeyField(
"models.AttackDefTeam", related_name="assigned_attack_def_problem"
)
|
Do different endpoints for the different modes. One route should always only do one thing so move to a separate router for round 2. The round 2 router should be called FFA and the round 1 router should be jeopardy. These should be the prefixes for the two modes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Add AttackDefProblem model and update CTF routes
(Note: Currently importing the team model directly since the dedicated AttackDefTeam model is pending)
The original requirements mention modifying all existing CTF routes to reject attack/def submissions and creating new routes for attack/def CTFs that incorporate powerup logic. Could you please clarify whether:
Additional guidance on how the powerup logic should affect the route behavior would be appreciated.
Closes #53