Skip to content
Snippets Groups Projects
Commit 6e92d0ab authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Improve code quality

parent 4da9594e
No related branches found
No related tags found
No related merge requests found
Pipeline #289177 passed
......@@ -82,7 +82,8 @@ class ExportSlidesView(EventSlugMixin, IntermediateAdminView):
# Get all relevant AKs (wishes separately, and either all AKs or only those who should directly or indirectly
# be presented when restriction setting was chosen)
categories_with_aks, ak_wishes = self.event.get_categories_with_aks(wishes_seperately=True, filter_func=lambda
ak: not RESULT_PRESENTATION_MODE or (ak.present or (ak.present is None and ak.category.present_by_default)), types=types)
ak: not RESULT_PRESENTATION_MODE or (ak.present or (ak.present is None and ak.category.present_by_default)),
types=types)
# Create context for LaTeX rendering
context = {
......
......@@ -74,7 +74,6 @@ class PlanIndexView(FilterByEventSlugMixin, ListView):
:param akslot: current slot
:type akslot: AKSlot
"""
pass
class PlanScreenView(PlanIndexView):
......
......@@ -52,11 +52,11 @@ def category_linked_badge(category, event_slug):
@register.inclusion_tag("AKSubmission/type_linked_badge.html")
def type_linked_badge(type, event_slug):
def type_linked_badge(ak_type, event_slug):
"""
Generate a clickable type badge based upon the type_linked_badge template
:param type: type to show/link
:param ak_type: type to show/link
:param event_slug: slug of this event, required for link creation
:return: html fragment containing badge
"""
return {"type": type, "event_slug": event_slug}
return {"type": ak_type, "event_slug": event_slug}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment