Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omegaUp API change for "Fix missing error highlighting in profile basic information fields (#7873)" #496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions omegaup/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2879,20 +2879,23 @@ class _ContestListv2Payload:
"""_ContestListv2Payload"""
contests: '_ContestList'
countContests: '_ContestListv2Payload_countContests'
pageSize: int
query: Optional[str]

def __init__(
self,
*,
contests: Dict[str, Any],
countContests: Dict[str, Any],
pageSize: int,
query: Optional[str] = None,
# Ignore any unknown arguments
**_kwargs: Any,
):
self.contests = _ContestList(**contests)
self.countContests = _ContestListv2Payload_countContests(
**countContests)
self.pageSize = pageSize
if query is not None:
self.query = query
else:
Expand Down Expand Up @@ -14989,8 +14992,8 @@ def list(
page_size: int,
query: str,
tab_name: str,
active: Optional[int] = None,
admission_mode: Optional[Any] = None,
admission_mode: Optional[str] = None,
filter: Optional[str] = None,
participating: Optional[int] = None,
recommended: Optional[int] = None,
sort_order: Optional[str] = None,
Expand All @@ -15006,8 +15009,8 @@ def list(
page_size:
query:
tab_name:
active:
admission_mode:
filter:
participating:
recommended:
sort_order:
Expand All @@ -15021,10 +15024,10 @@ def list(
'query': query,
'tab_name': tab_name,
}
if active is not None:
parameters['active'] = str(active)
if admission_mode is not None:
parameters['admission_mode'] = str(admission_mode)
parameters['admission_mode'] = admission_mode
if filter is not None:
parameters['filter'] = filter
if participating is not None:
parameters['participating'] = str(participating)
if recommended is not None:
Expand Down Expand Up @@ -20288,21 +20291,21 @@ def list(
only_quality_seal: bool,
difficulty: Optional[str] = None,
difficulty_range: Optional[str] = None,
language: Optional[Any] = None,
language: Optional[str] = None,
level: Optional[str] = None,
max_difficulty: Optional[int] = None,
min_difficulty: Optional[int] = None,
min_visibility: Optional[int] = None,
offset: Optional[int] = None,
only_karel: Optional[Any] = None,
order_by: Optional[Any] = None,
only_karel: Optional[bool] = None,
order_by: Optional[str] = None,
page: Optional[int] = None,
programming_languages: Optional[str] = None,
query: Optional[str] = None,
require_all_tags: Optional[Any] = None,
require_all_tags: Optional[bool] = None,
rowcount: Optional[int] = None,
some_tags: Optional[Any] = None,
sort_order: Optional[Any] = None,
some_tags: Optional[bool] = None,
sort_order: Optional[str] = None,
# Out-of-band parameters:
files_: Optional[Mapping[str, BinaryIO]] = None,
check_: bool = True,
Expand Down Expand Up @@ -20341,7 +20344,7 @@ def list(
if difficulty_range is not None:
parameters['difficulty_range'] = difficulty_range
if language is not None:
parameters['language'] = str(language)
parameters['language'] = language
if level is not None:
parameters['level'] = level
if max_difficulty is not None:
Expand All @@ -20355,7 +20358,7 @@ def list(
if only_karel is not None:
parameters['only_karel'] = str(only_karel)
if order_by is not None:
parameters['order_by'] = str(order_by)
parameters['order_by'] = order_by
if page is not None:
parameters['page'] = str(page)
if programming_languages is not None:
Expand All @@ -20369,7 +20372,7 @@ def list(
if some_tags is not None:
parameters['some_tags'] = str(some_tags)
if sort_order is not None:
parameters['sort_order'] = str(sort_order)
parameters['sort_order'] = sort_order
return _OmegaUp_Controllers_Problem__apiList(
**self._client.query('/api/problem/list/',
payload=parameters,
Expand Down
Loading