File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ def get_page(page_size: int, start_after: Optional[Project] = None):
77 """
88 TODO: Implement this function!
99
10- Given a list of items and pagination parameters, return a Page object containing:
10+ Given pagination parameters, return a Page object containing:
1111 - The correct slice of items based on the pagination parameters
1212 - A boolean indicating if there are more results available
1313
1414 Parameters:
15- items: List of items to paginate
1615 page_size: How many items to return per page
1716 start_after: Optional item to start pagination after
1817
@@ -34,13 +33,11 @@ def get_page_filtered(
3433 """
3534 TODO: Implement this function!
3635
37- Given a list of items, a filter function, and pagination parameters,
38- return a Page object containing:
36+ Given pagination parameters and a filter function, return a Page object containing:
3937 - The correct slice of filtered items based on the pagination parameters
4038 - A boolean indicating if there are more results available
4139
4240 Parameters:
43- items: List of items to paginate
4441 page_size: How many items to return per page
4542 filter_fn: Function to filter items
4643 start_after: Optional item to start pagination after
Original file line number Diff line number Diff line change 2727 "test" : " react-scripts test --env=jsdom" ,
2828 "eject" : " react-scripts eject" ,
2929 "start-frontend" : " react-scripts start" ,
30- "start-api" : " uv run api/app.py"
30+ "start-api" : " PYTHONUNBUFFERED=1 uv run api/app.py"
3131 },
3232 "browserslist" : [
3333 " >0.2%" ,
You can’t perform that action at this time.
0 commit comments