aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-03-26 11:28:34 +0100
committerrubenwardy <rw@rubenwardy.com>2018-03-26 11:28:34 +0100
commit05444e8018763def07e034513ec8f232d26bedd4 (patch)
tree1d7e1afd58f642dadae50ef30ee430bd2cc1d4dc /app/views
parentc19f93e36db24303b77757d5cfe6c9ec2aaee30e (diff)
downloadcheatdb-05444e8018763def07e034513ec8f232d26bedd4.tar.xz
Add tags
Fixes #4
Diffstat (limited to 'app/views')
-rw-r--r--app/views/packages.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/packages.py b/app/views/packages.py
index 6f809f2..c9ad24f 100644
--- a/app/views/packages.py
+++ b/app/views/packages.py
@@ -29,7 +29,8 @@ def doPackageList(type):
if shouldReturnJson():
return jsonify([package.getAsDictionary(app.config["BASE_URL"]) for package in query.all()])
else:
- return render_template("packages/list.html", title=title, packages=query.all(), query=search)
+ tags = Tag.query.all()
+ return render_template("packages/list.html", title=title, packages=query.all(), query=search, tags=tags)
@app.route("/packages/")