Skip to content

Commit f3a29ea

Browse files
committed
cap limit to 1000 inclusive before someone does something funny
1 parent 2e763d1 commit f3a29ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

placedump/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def get_pixel_history(
5151
y: Optional[int] = Query(None, ge=0),
5252
canvas_id: Optional[int] = Query(None, ge=-1),
5353
author: Optional[str] = None,
54-
limit: Optional[int] = Query(100, ge=0),
54+
limit: Optional[int] = Query(100, ge=0, le=1000),
5555
after: Optional[int] = None,
5656
):
5757
"""Get the history of pixels in a location or by author.

0 commit comments

Comments
 (0)