Skip to content

Commit 08554a0

Browse files
Bool fix
1 parent dbb0891 commit 08554a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

appstore/developer_portal_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ def submit_new_app():
150150
e="screenshot.missing"
151151
), 400
152152

153+
app_is_timeline_enabled = False
154+
if 'timeline_enabled' in params and params['timeline_enabled'] == 'true':
155+
app_is_timeline_enabled = True
156+
153157
# Remove any platforms with no screenshots
154158
screenshots = {k: v for k, v in screenshots.items() if v}
155159
app_obj = App(
@@ -173,7 +177,7 @@ def submit_new_app():
173177
source=params['source'] if 'source' in params else "",
174178
title=params['title'],
175179
type=params['type'],
176-
timeline_enabled=params['timeline_enabled'] if "timeline_enabled" in params else False,
180+
timeline_enabled=app_is_timeline_enabled,
177181
website=params['website'] if 'website' in params else "",
178182
)
179183
db.session.add(app_obj)

0 commit comments

Comments
 (0)