Skip to content

Commit 514625d

Browse files
committed
Serve gui.is_first_launch as boolean
1 parent f175e7b commit 514625d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

syncrypt/api/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ def cb(_task):
6262
@asyncio.coroutine
6363
@require_auth_token
6464
def get_config(self, request):
65-
return JSONResponse(self.app.config.as_dict())
65+
66+
cfg = self.app.config.as_dict()
67+
68+
# prepare certain config values for json
69+
cfg['gui']['is_first_launch'] = cfg['gui']['is_first_launch'] in ('1', 'yes')
70+
71+
return JSONResponse(cfg)
6672

6773
@asyncio.coroutine
6874
@require_auth_token

syncrypt/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class AppConfig(Config, BackendConfigMixin):
156156
'vaults': ''
157157
},
158158
'gui': {
159-
'show_wizard': '1',
159+
'is_first_launch': '1',
160160
'language': ''
161161
},
162162
'api': {

0 commit comments

Comments
 (0)