From 35373ab3fc028194a06896ae93f17d0c86c83fc7 Mon Sep 17 00:00:00 2001 From: thenav56 Date: Thu, 31 Aug 2023 12:11:35 +0545 Subject: [PATCH] Fix _share values Related to https://github.com/mapswipe/python-mapswipe-workers/issues/909 --- .../generate_stats/tasking_manager_geometries.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mapswipe_workers/mapswipe_workers/generate_stats/tasking_manager_geometries.py b/mapswipe_workers/mapswipe_workers/generate_stats/tasking_manager_geometries.py index bc3b5b5e7..942c1d73b 100644 --- a/mapswipe_workers/mapswipe_workers/generate_stats/tasking_manager_geometries.py +++ b/mapswipe_workers/mapswipe_workers/generate_stats/tasking_manager_geometries.py @@ -51,10 +51,10 @@ def load_data(project_id: str, gzipped_csv_file: str) -> list: "yes_count": int(column_index_map.get("1_count", 0)), "maybe_count": int(column_index_map.get("2_count", 0)), "bad_imagery_count": int(column_index_map.get("3_count", 0)), - "no_share": float(column_index_map.get("0_count", 0)), - "yes_share": float(column_index_map.get("1_count", 0)), - "maybe_share": float(column_index_map.get("2_count", 0)), - "bad_imagery_share": float(column_index_map.get("3_count", 0)), + "no_share": float(column_index_map.get("0_share", 0)), + "yes_share": float(column_index_map.get("1_share", 0)), + "maybe_share": float(column_index_map.get("2_share", 0)), + "bad_imagery_share": float(column_index_map.get("3_share", 0)), "wkt": tile_functions.geometry_from_tile_coords( task_x, task_y, task_z ),