Skip to content
Snippets Groups Projects

feat: add paging to package depends & required by

Merged Kevin Morris requested to merge kevr/aurweb:paged-depends into master
7 files
+ 125
16
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 3
3
@@ -214,7 +214,7 @@ def query_notified(query: List[models.Package],
return output
def pkg_required(pkgname: str, provides: List[str], limit: int) \
def pkg_required(pkgname: str, provides: List[str]) \
-> List[PackageDependency]:
"""
Get dependencies that match a string in `[pkgname] + provides`.
@@ -227,8 +227,8 @@ def pkg_required(pkgname: str, provides: List[str], limit: int) \
targets = set([pkgname] + provides)
query = db.query(PackageDependency).join(Package).filter(
PackageDependency.DepName.in_(targets)
).order_by(Package.Name.asc()).limit(limit)
return query.all()
).order_by(Package.Name.asc())
return query
@register_filter("source_uri")
Loading