[odrs-web: 1/4] 0 used to be an acceptable value
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web: 1/4] 0 used to be an acceptable value
- Date: Tue, 29 Sep 2020 15:02:23 +0000 (UTC)
commit a9bc8096f3ce946691c6b682692688a1870a380a
Author: Aleix Pol <aleixpol kde org>
Date: Tue Aug 27 17:21:05 2019 +0200
0 used to be an acceptable value
app_data/odrs/views_api.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app_data/odrs/views_api.py b/app_data/odrs/views_api.py
index 10ad680..324cd0c 100644
--- a/app_data/odrs/views_api.py
+++ b/app_data/odrs/views_api.py
@@ -192,7 +192,7 @@ def api_fetch():
for key in ['app_id', 'user_hash', 'locale', 'distro', 'limit', 'version']:
if not key in item:
return json_error('invalid data, expected %s' % key)
- if not item[key]:
+ if not item[key] and item[key] != 0:
return json_error('missing data, expected %s' % key)
# check format
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]