Reforma orgovského rozhraní ke kolům a soutěžím
Compare changes
- Martin Mareš authored
+ 434
− 434
@@ -8,10 +7,13 @@ from sqlalchemy import func, and_, select
@@ -19,33 +21,190 @@ import mo.config as config
@@ -59,6 +218,7 @@ class ParticipantsFilterForm(PagerForm):
@@ -120,20 +280,7 @@ class ParticipantsActionForm(FlaskForm):
@@ -154,6 +301,7 @@ class ParticipantsActionForm(FlaskForm):
@@ -183,12 +331,14 @@ class ParticipantsActionForm(FlaskForm):
@@ -204,109 +354,19 @@ class ParticipantsActionForm(FlaskForm):
@@ -319,7 +379,7 @@ def org_contest(id: int, site_id: Optional[int] = None):
@@ -330,7 +390,7 @@ def org_contest(id: int, site_id: Optional[int] = None):
@@ -338,27 +398,50 @@ def org_contest(id: int, site_id: Optional[int] = None):
@@ -369,10 +452,7 @@ def generic_import(round: db.Round, master_round: db.Round, contest: Optional[db
@@ -387,6 +467,7 @@ def generic_import(round: db.Round, master_round: db.Round, contest: Optional[db
@@ -395,28 +476,21 @@ def generic_import(round: db.Round, master_round: db.Round, contest: Optional[db
@@ -424,7 +498,7 @@ def org_contest_list(id: int, site_id: Optional[int] = None):
@@ -434,7 +508,7 @@ def org_contest_list(id: int, site_id: Optional[int] = None):
@@ -442,23 +516,26 @@ def org_contest_list(id: int, site_id: Optional[int] = None):
@@ -476,8 +553,7 @@ contest_list_columns = (
@@ -487,15 +563,18 @@ def get_contestants_query(
@@ -570,91 +649,6 @@ def get_contestant_emails(query: Query, mailto_subject: str = '[OSMO] Zpráva pr
@@ -674,15 +668,15 @@ class SetFinalForm(FlaskForm):
@@ -690,7 +684,7 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -737,7 +731,7 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -747,14 +741,14 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -763,28 +757,28 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -794,7 +788,7 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -806,7 +800,7 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -814,22 +808,22 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -859,7 +853,7 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -868,21 +862,21 @@ def org_submit_list(contest_id: int, user_id: int, task_id: int, site_id: Option
@@ -894,11 +888,11 @@ class SubmitEditForm(FlaskForm):
@@ -908,7 +902,7 @@ def org_submit_paper(contest_id: int, paper_id: int, filename: str, site_id: Opt
@@ -941,25 +935,25 @@ class TaskCreateForm(FlaskForm):
@@ -976,7 +970,7 @@ def org_contest_task(contest_id: int, task_id: int, site_id: Optional[int] = Non
@@ -986,7 +980,7 @@ def org_contest_task(contest_id: int, task_id: int, site_id: Optional[int] = Non
@@ -996,7 +990,7 @@ def org_contest_task(contest_id: int, task_id: int, site_id: Optional[int] = Non
@@ -1007,7 +1001,7 @@ def org_contest_task(contest_id: int, task_id: int, site_id: Optional[int] = Non
@@ -1016,7 +1010,7 @@ def org_contest_task(contest_id: int, task_id: int, site_id: Optional[int] = Non
@@ -1029,13 +1023,13 @@ def org_contest_task(contest_id: int, task_id: int, site_id: Optional[int] = Non
@@ -1043,8 +1037,10 @@ def org_contest_task(contest_id: int, task_id: int, site_id: Optional[int] = Non
@@ -1053,33 +1049,34 @@ class ContestSolutionsEditForm(FlaskForm):
@@ -1139,13 +1136,14 @@ def org_contest_solutions(id: int, site_id: Optional[int] = None):
@@ -1200,23 +1198,30 @@ def download_submits(form: DownloadSubmitsForm, round: db.Round, sol_query, pion
@@ -1226,6 +1231,8 @@ def generic_batch_download(round: db.Round, contest: Optional[db.Contest], site:
@@ -1244,7 +1251,8 @@ def generic_batch_download(round: db.Round, contest: Optional[db.Contest], site:
@@ -1258,13 +1266,18 @@ class UploadSubmitsForm(FlaskForm):
@@ -1274,35 +1287,18 @@ def generic_batch_upload(round: db.Round, contest: Optional[db.Contest], site: O
@@ -1315,15 +1311,22 @@ class BatchPointsForm(FlaskForm):
@@ -1334,10 +1337,7 @@ def generic_batch_points(round: db.Round, contest: Optional[db.Contest], task: d
@@ -1352,6 +1352,7 @@ def generic_batch_points(round: db.Round, contest: Optional[db.Contest], task: d
@@ -1359,37 +1360,27 @@ def generic_batch_points(round: db.Round, contest: Optional[db.Contest], task: d
@@ -1403,8 +1394,9 @@ def org_contest_user(contest_id: int, user_id: int):
@@ -1420,16 +1412,18 @@ class AdvanceForm(FlaskForm):
@@ -1519,7 +1513,7 @@ def org_contest_advance(contest_id: int):
@@ -1544,6 +1538,7 @@ def org_contest_advance(contest_id: int):
@@ -1561,11 +1556,13 @@ class ContestEditForm(FlaskForm):
@@ -1580,31 +1577,31 @@ def org_contest_edit(id: int):
@@ -1620,17 +1617,19 @@ class ParticipantAddForm(FlaskForm):
@@ -1652,10 +1651,11 @@ def org_contest_add_user(id: int, site_id: Optional[int] = None):