diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-03-26 13:04:09 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-03-26 13:04:09 +0100 |
| commit | 28d967e3e274c1afe797c753c3e996b1c3a710f5 (patch) | |
| tree | 5289168b8080b1aa71778410c68fb1532e4b6f02 /app/views | |
| parent | 821832770c88929b87b3db7285dd51594415bbaf (diff) | |
| download | cheatdb-28d967e3e274c1afe797c753c3e996b1c3a710f5.tar.xz | |
Add type to tag links
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/packages.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/packages.py b/app/views/packages.py index d1bf20e..d9f0717 100644 --- a/app/views/packages.py +++ b/app/views/packages.py @@ -31,7 +31,7 @@ def doPackageList(type): return jsonify([package.getAsDictionary(app.config["BASE_URL"]) for package in query.all()]) else: tags = Tag.query.all() - return render_template("packages/list.html", title=title, packages=query.all(), query=search, tags=tags) + return render_template("packages/list.html", title=title, packages=query.all(), query=search, tags=tags, type=None if type is None else type.toName()) @app.route("/packages/") |
