|
55 | 55 | UnacceptableSubmission, accept_submission |
56 | 56 | from cms.server.contest.tokening import \ |
57 | 57 | UnacceptableToken, TokenAlreadyPlayed, accept_token, tokens_available |
58 | | -from cmscommon.crypto import encrypt_number |
59 | 58 | from cmscommon.mimetypes import get_type_for_file_name |
60 | 59 | from .contest import ContestHandler, FileHandler, api_login_required |
61 | 60 | from ..phase_management import actual_phase_required |
@@ -109,11 +108,9 @@ def post(self, task_name): |
109 | 108 | self.notify_success(N_("Submission received"), |
110 | 109 | N_("Your submission has been received " |
111 | 110 | "and is currently being evaluated.")) |
112 | | - # The argument (encrypted submission id) is not used by CWS |
113 | | - # (nor it discloses information to the user), but it is |
114 | | - # useful for automatic testing to obtain the submission id). |
115 | | - query_args["submission_id"] = \ |
116 | | - encrypt_number(submission.id, config.web_server.secret_key) |
| 111 | + # The argument is not used by CWS, but it is useful for automatic |
| 112 | + # testing to obtain the submission id. |
| 113 | + query_args["submission_id"] = submission.opaque_id |
117 | 114 |
|
118 | 115 | self.redirect(self.contest_url("tasks", task.name, "submissions", |
119 | 116 | **query_args)) |
|
0 commit comments