linuxrouter/docker/routlin-dash/app/pages/accountcreate/view.py

10 lines
249 B
Python
Raw Normal View History

2026-06-02 00:47:03 -04:00
import json
import sanitize
def collect_tokens(cfg):
blank = [{'value': '', 'label': '-- Select timezone --'}]
return {
'TIMEZONE_OPTIONS': json.dumps(blank + [{'value': tz, 'label': tz} for tz in sanitize.VALID_TIMEZONES]),
}