aboutsummaryrefslogtreecommitdiff
path: root/app/views/api.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-01-29 01:28:38 +0000
committerrubenwardy <rw@rubenwardy.com>2019-01-29 01:29:49 +0000
commit2844773e4d05b3453fb90e131035a1639f05cd84 (patch)
tree095be6ae756e5097032a36628b950dffd987cbe6 /app/views/api.py
parent23c406bff9c0598f84be8dfcfa4a80f8093b05a6 (diff)
downloadcheatdb-2844773e4d05b3453fb90e131035a1639f05cd84.tar.xz
Fix wrong release ID returned by API on explicit protocol version
Diffstat (limited to 'app/views/api.py')
-rw-r--r--app/views/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/api.py b/app/views/api.py
index 273ae8e..855c6a5 100644
--- a/app/views/api.py
+++ b/app/views/api.py
@@ -27,7 +27,7 @@ def api_packages_page():
qb = QueryBuilder(request.args)
query = qb.buildPackageQuery()
- pkgs = [package.getAsDictionaryShort(app.config["BASE_URL"]) \
+ pkgs = [package.getAsDictionaryShort(app.config["BASE_URL"], request.args.get("protocol_version")) \
for package in query.all() if package.getDownloadRelease() is not None]
return jsonify(pkgs)