Skip to content

Commit

Permalink
Update method signature
Browse files Browse the repository at this point in the history
normalise_domain_name_length is now a method, not a function
  • Loading branch information
mrchrisadams committed Mar 1, 2024
1 parent cbe971e commit b200e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/greencheck/badges/image_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class GreencheckImageV3:
font_settings_green = ImageFont.truetype(str(font_path), 9)
font_settings_grey = ImageFont.truetype(str(font_path), 9)

def normalise_domain_name_length(domain: str) -> str:
def normalise_domain_name_length(self, domain: str) -> str:
"""
Truncate the domain name if it's too long,
to fit in the badge
Expand Down

0 comments on commit b200e05

Please sign in to comment.