Skip to content

Commit

Permalink
dynamic default timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Mar 3, 2024
1 parent 812bf67 commit 87fc970
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ansibleguy-webui/aw/model/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ def get_config_from_db() -> SystemConfig:
raise ObjectDoesNotExist()

except ObjectDoesNotExist:
# create config-object and set dynamic defaults
config_db = SystemConfig(
path_play=CONFIG_DEFAULTS['path_play'],
path_log=CONFIG_DEFAULTS['path_log'],
timezone=CONFIG_DEFAULTS['timezone'],
)
config_db.save()

Expand Down

0 comments on commit 87fc970

Please # to comment.