Skip to content

Commit

Permalink
fix: allow boolean types as values
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-i-am committed Feb 29, 2024
1 parent e7d72b8 commit 898a4cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eox_tenant/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def get_value_for_org(cls, org, val_name):
for result in results:
value = result.lms_configs.get(val_name)

if value:
if value is not None:
return value

return None
Expand Down
2 changes: 1 addition & 1 deletion eox_tenant/tenant_wise/proxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __get_value_for_org(cls, org, val_name, default=None):

result = TenantConfig.get_value_for_org(org, val_name)

if result:
if result is not None:
cls.set_key_to_cache(cache_key, result)
return result

Expand Down

0 comments on commit 898a4cd

Please sign in to comment.