diff options
author | Alban Gruin | 2018-01-27 17:56:45 +0100 |
---|---|---|
committer | Alban Gruin | 2018-01-27 18:13:25 +0100 |
commit | c9388e29b2f9ee18a9e190683a8a33fb710684c5 (patch) | |
tree | 1d9402e02719110d3a0f15b74500b57afe0d2fd4 /templatetags/rooms.py | |
parent | 465c1c13f2e5a77f296de92d4b5b14cf319c68c5 (diff) |
PEP8
Diffstat (limited to 'templatetags/rooms.py')
-rw-r--r-- | templatetags/rooms.py | 4 |
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) |