Commit 932526b5 authored by Jerome Touvier's avatar Jerome Touvier
Browse files

Merge branch 'fix4' into 'master'

fix remove requests field

See merge request !40
parents 4fbe1425 b91c2437
Pipeline #61047 passed with stage
in 40 seconds
...@@ -271,7 +271,7 @@ def map_requests(params, data): ...@@ -271,7 +271,7 @@ def map_requests(params, data):
for code, requests in data: for code, requests in data:
country = codes.get(code) country = codes.get(code)
if country: if country and requests:
for i, name in enumerate(geodata["name"]): for i, name in enumerate(geodata["name"]):
if country.lower() in name: if country.lower() in name:
geodata["requests"][i] += requests geodata["requests"][i] += requests
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment