Skip to content

Commit

Permalink
removed debug print/pep8ify
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Nov 22, 2023
1 parent 6d32da2 commit 39f2179
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/templatetags/banners.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@


@register.simple_tag
def banners(filter: typing.Literal["current", "upcoming", "all"]):
print(Banners.calculate_banners())
print("^")
if filter != "all":
return Banners.calculate_banners()[filter]
def banners(banner_type: typing.Literal["current", "upcoming", "all"]):
if banner_type != "all":
return Banners.calculate_banners()[banner_type]
return Banners.calculate_banners()

0 comments on commit 39f2179

Please sign in to comment.