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

Add Dynamic Points Calculation #13

Merged
merged 6 commits into from
Jan 13, 2024
Merged

Conversation

WizzyGeek
Copy link
Contributor

Need a constant for the number of solves when the points are the minimum value

@WizzyGeek WizzyGeek marked this pull request as ready for review January 10, 2024 17:34
.gitignore Show resolved Hide resolved

class Hint(Model):
id = fields.IntField(pk=True)
order = fields.SmallIntField() # 0, 1, 2
problem: fields.ForeignKeyRelation[Problem] = fields.ForeignKeyField(
"models.Problem"
"models.Problem", related_name="hints"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dunno why i did this, but it is there now

@@ -60,6 +73,7 @@ async def flag_post(ctf_id: int, flag: Flag, response: Response, jwt: RequireJwt
)
if check_solved:
await SolvedProblem.create(team_id=team_id, problem_id=ctf_id)
create_task(update_points(ctf_id))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Background update

@mradigen mradigen merged commit 533314b into lugvitc:master Jan 13, 2024
2 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.

3 participants