feat: Store flag id instead of flag content

This commit is contained in:
2025-11-06 17:06:03 +01:00
parent 644242697a
commit 716f481235
3 changed files with 11 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ directory_name = PLUGIN_PATH.split(os.sep)[-1] # Get the directory name of this
bp = Blueprint(directory_name, __name__, template_folder="templates")
def add_cheater(challenge_id: int, cheater_id: int, helper_id: int, flag: str):
def report_cheater(challenge_id: int, cheater_id: int, helper_id: int, flag_id: int):
cheater = CheaterTeams(challenge_id, cheater_id, helper_id, flag)
db.session.add(cheater)
db.session.commit()