diff options
| author | Martin Fischer <martin@push-f.com> | 2022-06-25 11:59:06 +0200 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2022-06-25 11:59:06 +0200 | 
| commit | dc5bb4b67b101e3586daffe113663e32e345a831 (patch) | |
| tree | 6e36d4dfdb58defc0a9e10d59c983f049c90b699 | |
| parent | b8035e45ea4248b1f2f09786d092531043bc8123 (diff) | |
round mapped_length
| -rwxr-xr-x | fetch_data.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/fetch_data.py b/fetch_data.py index df88e31..0a05d8a 100755 --- a/fetch_data.py +++ b/fetch_data.py @@ -152,7 +152,7 @@ def query_overpass(relation_ids: Collection[int], with_length: bool):          data = dict(tags={k: v for k, v in rel['tags'].items() if k in KEYS})          if with_length: -            data['mapped_length'] = get_length(rel, all_relations) +            data['mapped_length'] = round(get_length(rel, all_relations))              wikidata_id = rel['tags'].get('wikidata')              if wikidata_id in wikidata_lengths:                  data['wikidata_length'] = wikidata_lengths[wikidata_id] | 
