Skip to content

Commit 1b2779e

Browse files
committed
fix built area tutorial creation zoom level to int
1 parent d3beb0a commit 1b2779e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mapswipe_workers/mapswipe_workers/project_types/build_area/build_area_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def generate_tutorial_data(tutorial):
4747
}
4848

4949
grouped_tasks[category][row[3]]["task_id_list"].append(row[0])
50-
zoom = row[0].split("-")[0]
50+
zoom = int(row[0].split("-")[0])
5151
task_x = int(row[0].split("-")[1])
5252
task_y = int(row[0].split("-")[2])
5353
grouped_tasks[category][row[3]]["task_x_list"].append(task_x)

mapswipe_workers/sample_data/build_area_tutorial.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"contributorCount": 0,
1111
"examplesFile": "sample_data/build_area_tutorial_tasks.csv",
1212
"tileServer":{
13-
"name": "bing"
13+
"name": "bing",
14+
"apiKey": ""
1415
},
1516
"categories": {
1617
"building_easy_1": {

0 commit comments

Comments
 (0)