Skip to content

Commit a6a85e4

Browse files
vignesh05904vignesh05904
andauthored
fix: sage rebranding flag boolean to string (#569)
Co-authored-by: vignesh05904 <vignesh.s@fyle.in>
1 parent 2e3eb99 commit a6a85e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/workspaces/email.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def send_failure_notification_email(
118118
error_types = {error.type.title().replace("_", " ") for error in errors}
119119
context = {
120120
"name": admin_name,
121-
"brand_name": 'Sage Expense Management' if settings.IS_REBRANDED == True else 'Fyle',
122-
"is_rebranded": settings.IS_REBRANDED == True,
121+
"brand_name": 'Sage Expense Management' if settings.IS_REBRANDED == 'True' else 'Fyle',
122+
"is_rebranded": settings.IS_REBRANDED == 'True',
123123
"errors_count": task_logs_count,
124124
"fyle_company": workspace.name,
125125
"xero_tenant": tenant_detail.tenant_name,

fyle_xero_api/tests/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268

269269
# Fyle Settings
270270
BRAND_ID = os.environ.get('BRAND_ID', 'fyle')
271-
IS_REBRANDED = os.environ.get('IS_REBRANDED', False)
271+
IS_REBRANDED = os.environ.get('IS_REBRANDED', 'False')
272272
API_URL = os.environ.get("API_URL")
273273
FYLE_TOKEN_URI = os.environ.get("FYLE_TOKEN_URI")
274274
FYLE_CLIENT_ID = os.environ.get("FYLE_CLIENT_ID")

0 commit comments

Comments
 (0)