aboutsummaryrefslogtreecommitdiff
path: root/templatetags/rooms.py
diff options
context:
space:
mode:
authorAlban Gruin2018-04-23 16:20:38 +0200
committerAlban Gruin2018-04-23 16:20:38 +0200
commit63ceb7ff232cd4015ae148bec31c6d72d9239c19 (patch)
tree9aee056480b5fae0c97f5e1c8be4ab1358602926 /templatetags/rooms.py
parentaf055dbf703af0eca03862194de1a0f34ac1fcc5 (diff)
parent9853d375d9e482c23f5fdbed9a3cf041029a92cb (diff)
Merge branch 'qsjps' into futur
Diffstat (limited to 'templatetags/rooms.py')
-rw-r--r--templatetags/rooms.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/templatetags/rooms.py b/templatetags/rooms.py
index 5108c92..f0e1b2e 100644
--- a/templatetags/rooms.py
+++ b/templatetags/rooms.py
@@ -17,10 +17,12 @@ from django import template
register = template.Library()
+
@register.filter
def format_rooms(rooms):
amphi_list = [room.name for room in rooms if room.name.startswith("Amphi")]
- room_list = [room.name for room in rooms if not room.name.startswith("Amphi")]
+ room_list = [room.name for room in rooms
+ if not room.name.startswith("Amphi")]
amphis = ", ".join(amphi_list)
joined = ", ".join(room_list)