Skip to content
Snippets Groups Projects
Verified Commit 5a388dd2 authored by Georg Krause's avatar Georg Krause
Browse files

fix: Fix limit filter to work properly

parent 4a70013e
No related branches found
No related tags found
1 merge request!43Apply patches from the server
Pipeline #25238 failed with stage
in 38 seconds
......@@ -51,7 +51,7 @@ async def index(request):
async def domains(request):
if request.method == "GET":
filters = await parser.parse(domain_filters, request)
limit = filters.pop("limit", 0)
limit = int(request.query.get("limit", default=0))
rows = await db.get_domains(request["conn"], **filters)
total = len(rows)
if limit:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment