|
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 |
|
4 | 4 | # Contest Management System - http://cms-dev.github.io/ |
5 | | -# Copyright © 2016 Stefano Maggiolo <s.maggiolo@gmail.com> |
| 5 | +# Copyright © 2017 Stefano Maggiolo <s.maggiolo@gmail.com> |
6 | 6 | # Copyright © 2016 Myungwoo Chun <mc.tamaki@gmail.com> |
7 | 7 | # |
8 | 8 | # This program is free software: you can redistribute it and/or modify |
@@ -52,6 +52,11 @@ def add_participation(username, contest_id, ip, delay_time, extra_time, |
52 | 52 | delay_time = delay_time if delay_time is not None else 0 |
53 | 53 | extra_time = extra_time if extra_time is not None else 0 |
54 | 54 |
|
| 55 | + if hidden: |
| 56 | + logger.warning("The participation will be hidden") |
| 57 | + if unrestricted: |
| 58 | + logger.warning("The participation will be unrestricted") |
| 59 | + |
55 | 60 | try: |
56 | 61 | with SessionGen() as session: |
57 | 62 | user = \ |
@@ -111,9 +116,9 @@ def main(): |
111 | 116 | help="how much additional time, in seconds") |
112 | 117 | parser.add_argument("-t", "--team", action="store", type=utf8_decoder, |
113 | 118 | help="code of the team for this participation") |
114 | | - parser.add_argument("-n", "--hidden", action="store_true", |
| 119 | + parser.add_argument("--hidden", action="store_true", |
115 | 120 | help="if the participation is hidden") |
116 | | - parser.add_argument("-u", "--unrestricted", action="store_true", |
| 121 | + parser.add_argument("--unrestricted", action="store_true", |
117 | 122 | help="if the participation is unrestricted") |
118 | 123 |
|
119 | 124 | args = parser.parse_args() |
|
0 commit comments