Skip to content

Commit 0fcf2eb

Browse files
authored
Merge pull request #12 from hex-inc/skl/logging-and-commnets
Update comments and don't batch logs
2 parents 08f2777 + 86222a0 commit 0fcf2eb

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

api/pagination.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
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%",

0 commit comments

Comments
 (0)