diff --git a/src/keria/app/credentialing.py b/src/keria/app/credentialing.py index 7193890b..c788de43 100644 --- a/src/keria/app/credentialing.py +++ b/src/keria/app/credentialing.py @@ -312,13 +312,20 @@ def on_post(req, rep, name): sort = body["sort"] else: sort = None + + if "skip" in body: + skip = body["skip"] + else: + skip = 0 + + if "limit" in body: + limit = body["limit"] + else: + limit = 25 except falcon.HTTPError: filtr = {} sort = {} - skip = req.params.get("skip") - limit = req.params.get("limit") - cur = agent.seeker.find(filtr=filtr, sort=sort, skip=skip, limit=limit) saids = [coring.Saider(qb64=said) for said in cur] creds = agent.rgy.reger.cloneCreds(saids=saids)