File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mapswipe_workers/mapswipe_workers/project_types/base Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ def __init__(self, project_draft):
92
92
self .tutorialId = project_draft .get ("tutorialId" , None )
93
93
94
94
# currently crowdmap specific attributes todo: discuss in group if empty attributes in mapswipe postgres are ok
95
- self .language = "en-us" if "language" not in project_draft .keys () else project_draft [ "language" ]
96
- self .appId = None if "appId" not in project_draft .keys () else project_draft [ "appId" ]
97
- self .manualUrl = None if "manualUrl" not in project_draft .keys () else project_draft [ "manualUrl" ]
95
+ self .language = project_draft .get ( "language" , "en-us" )
96
+ self .appId = project_draft .get ( "appId" , None )
97
+ self .manualUrl = project_draft .get ( "manualUrl" , None )
98
98
99
99
100
100
You can’t perform that action at this time.
0 commit comments