diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-01-29 01:28:38 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-01-29 01:29:49 +0000 |
commit | 2844773e4d05b3453fb90e131035a1639f05cd84 (patch) | |
tree | 095be6ae756e5097032a36628b950dffd987cbe6 /app/views/api.py | |
parent | 23c406bff9c0598f84be8dfcfa4a80f8093b05a6 (diff) | |
download | cheatdb-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.py | 2 |
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) |