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 "Update carrousel (#7866)" #494

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
15 changes: 9 additions & 6 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
Loading