Commit
·
41a0962
1
Parent(s):
f092a9c
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,10 @@ def avp():
|
|
23 |
result = {}
|
24 |
for key, value in incoming.items():
|
25 |
if value.isdigit():
|
26 |
-
|
|
|
|
|
|
|
27 |
else:
|
28 |
result[key] = value
|
29 |
response = jsonify(result)
|
|
|
23 |
result = {}
|
24 |
for key, value in incoming.items():
|
25 |
if value.isdigit():
|
26 |
+
if int(value) > 0:
|
27 |
+
result[key] = str(int(value) - 1)
|
28 |
+
else:
|
29 |
+
result[key] = value
|
30 |
else:
|
31 |
result[key] = value
|
32 |
response = jsonify(result)
|