Skip to content

Commit 283b70a

Browse files
committed
add correct number of tasks to tutorial group
1 parent 60af182 commit 283b70a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

mapswipe_workers/mapswipe_workers/project_types/arbitrary_geometry/task.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ def __init__(
2828
super().__init__(group, taskId=task_id)
2929
self.geojson = featureGeometry
3030

31-
print(center)
32-
3331
# only tasks that use Google tile map service need this
3432
if center:
3533
self.center = center

mapswipe_workers/mapswipe_workers/project_types/arbitrary_geometry/tutorial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def create_tutorial_groups(self):
3939
group = Group(self, groupId=101)
4040
self.groups[101] = vars(group)
4141

42-
# add number of tasks for the group here
43-
# this needs to be set according to the examples for the tutorial
44-
self.groups[101]["numberOfTasks"] = len(self.tutorial_tasks)
42+
# Add number of tasks for the group here. This needs to be set according to
43+
# the number of features/examples in the geojson file
44+
self.groups[101]["numberOfTasks"] = len(self.tutorial_tasks["features"])
4545

4646
logger.info(
4747
f"{self.projectId}"

0 commit comments

Comments
 (0)