Update public source
This commit is contained in:
@@ -142,17 +142,25 @@ def jobs_page():
|
||||
"Выберите версию метода."
|
||||
)
|
||||
|
||||
limit_raw = request.form.get(
|
||||
"limit",
|
||||
"100",
|
||||
).strip()
|
||||
issue_mode = request.form.get(
|
||||
"issue_mode",
|
||||
"limited",
|
||||
)
|
||||
|
||||
try:
|
||||
limit = int(limit_raw)
|
||||
except ValueError as exc:
|
||||
raise JobIssuanceError(
|
||||
"Количество handshakes должно быть целым числом."
|
||||
) from exc
|
||||
if issue_mode == "all":
|
||||
limit = None
|
||||
else:
|
||||
limit_raw = request.form.get(
|
||||
"limit",
|
||||
"100",
|
||||
).strip()
|
||||
|
||||
try:
|
||||
limit = int(limit_raw)
|
||||
except ValueError as exc:
|
||||
raise JobIssuanceError(
|
||||
"Количество handshakes должно быть целым числом."
|
||||
) from exc
|
||||
|
||||
issued_job = issuance_service.issue_job(
|
||||
method_id=selected_method_id,
|
||||
|
||||
Reference in New Issue
Block a user