Skip to content

Commit

Permalink
fix_limit_skip
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodolfo Miranda committed Aug 3, 2023
1 parent afa1c9b commit e6644ac
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/keria/app/credentialing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e6644ac

Please sign in to comment.