aboutsummaryrefslogtreecommitdiff
path: root/templatetags/rooms.py
diff options
context:
space:
mode:
authorAlban Gruin2018-04-25 21:26:03 +0200
committerAlban Gruin2018-04-25 21:26:03 +0200
commit54c5dbb98293acea9b470808e5a35e99c004f265 (patch)
tree7fb350d07e2f2a4d687b00fd034e638bd02f8526 /templatetags/rooms.py
parent772caa72ce7f80bfeb5fbb1d05b57838dafd48c3 (diff)
parent5488a93bf2e04d2f19e287186011dcbb436a238b (diff)
Merge branch 'stable/0.13.z' into prod/pa1ch/0.y.z
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)