Skip to content

Commit

Permalink
👕 - Run black.
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Dec 24, 2021
1 parent 2c207eb commit 2dd2d00
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/open_inwoner/components/templatetags/link_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def get_classes():
classes = [base_class]

for modifier_tuple in [
('active', False),
('align', ''),
('bold', False),
('icon_position', ''),
('primary', False),
('secondary', False)
("active", False),
("align", ""),
("bold", False),
("icon_position", ""),
("primary", False),
("secondary", False),
]:
modifier, default = modifier_tuple
modifier_class = modifier.replace('_', '-')
modifier_class = modifier.replace("_", "-")
value = kwargs.get(modifier, default)

if not value:
Expand All @@ -102,7 +102,7 @@ def get_classes():
if type(default) is bool:
classes.append(f"{base_class}--{modifier_class}")
classes.append(f"{base_class}--{modifier_class}-{value}")
classes.append(kwargs.get('extra_classes', ''))
classes.append(kwargs.get("extra_classes", ""))

return " ".join(classes).strip()

Expand Down

0 comments on commit 2dd2d00

Please sign in to comment.