Skip to content

Commit

Permalink
added default length for max_name_length
Browse files Browse the repository at this point in the history
  • Loading branch information
hofiorg committed May 29, 2024
1 parent 30922c0 commit 5837c11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/check_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def check_urls(url_data):
if not url_data['urls']:
print("No URLs to check.")
return
max_name_length = 15 # default length
if url_data['urls']:
max_name_length = max(len(item['name']) for item in url_data['urls'])

Expand Down

0 comments on commit 5837c11

Please sign in to comment.