Development
This commit is contained in:
parent
6d9aac0460
commit
59ac3c5973
20 changed files with 1466 additions and 1 deletions
12
docker/routlin-dash/app/pages/preferences/view.py
Normal file
12
docker/routlin-dash/app/pages/preferences/view.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import json
|
||||
from flask import session
|
||||
import sanitize
|
||||
|
||||
|
||||
def collect_tokens(cfg):
|
||||
blank = [{'value': '', 'label': '-- Select timezone --'}]
|
||||
return {
|
||||
'PREF_EMAIL': session.get('email_address', ''),
|
||||
'PREF_TIMEZONE': session.get('timezone', ''),
|
||||
'TIMEZONE_OPTIONS': json.dumps(blank + [{'value': tz, 'label': tz} for tz in sanitize.VALID_TIMEZONES]),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue