From 25a134f7f8294fc7b4284b8c4326e907bd2aa032 Mon Sep 17 00:00:00 2001 From: Pasit Sangprachathanarak Date: Mon, 4 May 2026 15:35:13 +0800 Subject: [PATCH] fix more bugs in the user groups PR --- cms/server/contest/handlers/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/server/contest/handlers/main.py b/cms/server/contest/handlers/main.py index 2b3e60f160..012b835fc2 100644 --- a/cms/server/contest/handlers/main.py +++ b/cms/server/contest/handlers/main.py @@ -113,8 +113,9 @@ def post(self): # Create participation team = self._get_team() - participation = Participation(user=user, contest=self.contest, - team=team) + participation = Participation( + user=user, contest=self.contest, team=team, group=self.contest.main_group + ) self.sql_session.add(participation) self.sql_session.commit()