Skip to content

Commit 47c605a

Browse files
Fix typos
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent ce62a87 commit 47c605a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cla-backend/cla/controllers/company.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def update_company_allowlist_csv(content, company_id, username=None):
223223
# Ready email addresses.
224224
emails = content.split('\n')
225225
emails = [email for email in emails if '@' in email]
226-
current_allowlist = company.get_company_'allowlist'()
226+
current_allowlist = company.get_company_allowlist()
227227
new_allowlist = list(set(current_allowlist + emails))
228228
company.set_company_allowlist(new_allowlist)
229229
company.save()

cla-backend/cla/routes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def get_users_company(auth_user: check_auth, user_company_id: hug.types.uuid):
152152
"""
153153
return cla.controllers.user.get_users_company(user_company_id)
154154

155-
# We can't change API URL to be inclusive yet as this woudl break all consumers and require acs-cli and lfx-gateway updates
155+
# We can't change API URL to be inclusive yet as this would break all consumers and require acs-cli and lfx-gateway updates
156156
@hug.post("/user/{user_id}/request-company-whitelist/{company_id}", versions=2)
157157
def request_company_allowlist(
158158
user_id: hug.types.uuid,
@@ -341,7 +341,7 @@ def post_signature(
341341
)
342342

343343

344-
# We can't change API parameters to be inclusive yet as this woudl break all consumers and require acs-cli and lfx-gateway updates
344+
# We can't change API parameters to be inclusive yet as this would break all consumers and require acs-cli and lfx-gateway updates
345345
@hug.put(
346346
"/signature",
347347
versions=1,
@@ -360,7 +360,7 @@ def put_signature(
360360
signature_embargo_acked=None,
361361
signature_return_url=None,
362362
signature_sign_url=None,
363-
domain_whitelist=None, # bacause they come from API parameter we can't change to inclusive names yet
363+
domain_whitelist=None, # because they come from API parameter we can't change to inclusive names yet
364364
email_whitelist=None,
365365
github_whitelist=None,
366366
github_org_whitelist=None,
@@ -387,7 +387,7 @@ def put_signature(
387387
signature_embargo_acked=signature_embargo_acked,
388388
signature_return_url=signature_return_url,
389389
signature_sign_url=signature_sign_url,
390-
domain_allowlist=domain_whitelist, # bacause they come from API parameter we can't change to inclusive names yet
390+
domain_allowlist=domain_whitelist, # because they come from API parameter we can't change to inclusive names yet
391391
email_allowlist=email_whitelist,
392392
github_allowlist=github_whitelist,
393393
github_org_allowlist=github_org_whitelist,
@@ -735,7 +735,7 @@ def delete_company(auth_user: check_auth, company_id: hug.types.text):
735735
return cla.controllers.company.delete_company(company_id, username=auth_user.username)
736736

737737

738-
# We can't change API URL to be inclusive yet as this woudl break all consumers and require acs-cli and lfx-gateway updates
738+
# We can't change API URL to be inclusive yet as this would break all consumers and require acs-cli and lfx-gateway updates
739739
@hug.put("/company/{company_id}/import/whitelist/csv", versions=1)
740740
def put_company_allowlist_csv(body, auth_user: check_auth, company_id: hug.types.uuid):
741741
"""

0 commit comments

Comments
 (0)