Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
SebRut committed Jul 28, 2022
2 parents 4b4466e + 594666b commit ca53339
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pygrocy/data_models/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ def __init__(self, system_config_dto: SystemConfigDto):
self._locale = system_config_dto.locale
self._currency = system_config_dto.currency

self._enabled_features = []
for feature, value in system_config_dto.feature_flags.items():
if bool(value):
self._enabled_features.append(feature)
self._enabled_features = [
feature
for feature, value in system_config_dto.feature_flags.items()
if value
not in (False, "0") # The default is enabled, disabled can be False or "0"
]

@property
def username(self) -> str:
Expand Down

0 comments on commit ca53339

Please sign in to comment.