Skip to content

Commit f5e4b0d

Browse files
author
matthias_schaub
committed
Define project type and its class constructor in definition.py
1 parent fd27250 commit f5e4b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapswipe_workers/mapswipe_workers/mapswipe_workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run_create_projects():
7676
project_name = project_draft["name"]
7777
try:
7878
# Create a project object using appropriate class (project type).
79-
project = ProjectType(project_type).constructor()
79+
project = ProjectType(project_type).constructor(project_draft)
8080
project.geometry = project.validate_geometries()
8181
project.create_groups()
8282
project.calc_required_results()

0 commit comments

Comments
 (0)