Compare commits

..

No commits in common. "03036b2d3be2f3b25f265450912f045cf0954ee3" and "32b6fdacb6a99e8224768a5f665bc3ad0e395a5b" have entirely different histories.

View File

@ -84,7 +84,8 @@ async def read_events(
status_code=status.HTTP_400_BAD_REQUEST,
detail="`skip` should be >= 0 and `limit` should be > 0 and greater than `skip`.",
)
skip = limit * skip
limit = limit + skip
# Initialize filters
filters = []
@ -165,7 +166,7 @@ async def search_events(
status_code=status.HTTP_400_BAD_REQUEST,
detail="`skip` should be >= 0 and `limit` should be > 0 and greater than `skip`.",
)
skip = limit * skip
limit = limit + skip
# Initialize filters
filters = [{"status": {"$eq": status}}]