We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3a29ea commit 1d4687aCopy full SHA for 1d4687a
placedump/api/__init__.py
@@ -56,6 +56,8 @@ async def get_pixel_history(
56
):
57
"""Get the history of pixels in a location or by author.
58
59
+ canvas_id can be set to -1 to get results for all canvases.
60
+
61
This call accepts positions with X, Y coordinates, without a canvas.
62
63
This call accepts positions with X, Y coordinates in specific canvases.
@@ -91,7 +93,7 @@ async def get_pixel_history(
91
93
filter_query = filter_query.filter(Pixel.modified >= timestamp)
92
94
95
# Canvas
- if canvas_id is not None:
96
+ if canvas_id is not None and canvas_id != -1:
97
count_query = count_query.filter(Pixel.board_id == canvas_id)
98
filter_query = filter_query.filter(Pixel.board_id == canvas_id)
99
0 commit comments