DmitrMakeev commited on
Commit
4af33dc
1 Parent(s): 41a0962

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -22,11 +22,8 @@ def avp():
22
  print(incoming)
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)
 
22
  print(incoming)
23
  result = {}
24
  for key, value in incoming.items():
25
+ if int(value) > 0:
26
+ result[key] = str(int(value) - 1)
 
 
 
27
  else:
28
  result[key] = value
29
  response = jsonify(result)