mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Use named arguments for clearer string formatting
Helps when the string is long. Also helps disambiguate between the CDN domain used for the logos and those for CSS/JS.
This commit is contained in:
@@ -54,7 +54,7 @@ from app.main.forms import (
|
||||
from app.utils import (
|
||||
AgreementInfo,
|
||||
email_safe,
|
||||
get_cdn_domain,
|
||||
get_logo_cdn_domain,
|
||||
user_has_permissions,
|
||||
user_is_platform_admin,
|
||||
)
|
||||
@@ -991,7 +991,7 @@ def get_branding_as_value_and_label(email_branding):
|
||||
def get_branding_as_dict(email_branding):
|
||||
return {
|
||||
branding['id']: {
|
||||
'logo': 'https://{}/{}'.format(get_cdn_domain(), branding['logo']),
|
||||
'logo': 'https://{}/{}'.format(get_logo_cdn_domain(), branding['logo']),
|
||||
'colour': branding['colour']
|
||||
} for branding in email_branding
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user