diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-07-12 17:15:30 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-07-12 17:15:30 +0100 |
commit | f437850a501cfee91dc70ad6d88d2ed215f8b2c6 (patch) | |
tree | e1041c2c1c0d9dfaf11427d8f5b21cf59c6c486a /app/blueprints/packages/packages.py | |
parent | 820c968f7354a8485d55921c7ecf585517b544e8 (diff) | |
download | cheatdb-f437850a501cfee91dc70ad6d88d2ed215f8b2c6.tar.xz |
Add global url_set_query Jinja template function
Diffstat (limited to 'app/blueprints/packages/packages.py')
-rw-r--r-- | app/blueprints/packages/packages.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/blueprints/packages/packages.py b/app/blueprints/packages/packages.py index ed1518d..53bd3b0 100644 --- a/app/blueprints/packages/packages.py +++ b/app/blueprints/packages/packages.py @@ -80,17 +80,12 @@ def list_all(): qb.show_discarded = True topics = qb.buildTopicQuery().all() - def url_builder(page): - args = dict(request.args) - args["page"] = page - return url_for("packages.list_all", **args) - tags = Tag.query.all() return render_template("packages/list.html", \ title=title, packages=query.items, topics=topics, \ query=search, tags=tags, type=type_name, \ authors=authors, packages_count=query.total, \ - pagination=query, url_builder=url_builder) + pagination=query) def getReleases(package): |