Skip to content

Add offset/limit support to get_assertions_by_badge for pagination #264

@Daniel-1600

Description

@Daniel-1600

Problem
get_assertions_by_badge fetches all assertions at once using .all(),
leaving pagination to be handled in Python by consumers like tahrir.
This is inefficient and was flagged in tahrir's codebase as a known issue.

Fix
Add offset and limit params and let SQLAlchemy handle it at the DB level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions