get_includables_avoidables: fix typo

This commit is contained in:
Laura Klünder 2016-12-23 20:30:50 +01:00
parent 7570077810
commit 8581418712
2 changed files with 3 additions and 1 deletions

View file

@ -32,7 +32,7 @@ def get_includables_avoidables(request):
for location in locations:
item = (location.location_id, location.title)
if not location.location_id not in request.c3nav_access_list and not request.c3nav_full_access:
if location.location_id not in request.c3nav_access_list and not request.c3nav_full_access:
if location.routing_inclusion == 'needs_permission':
continue

View file

@ -183,7 +183,9 @@ def main(request, location=None, origin=None, destination=None):
elevators = reverse_ctypes(allowed_ctypes, 'elevator')
includables, avoidables = get_includables_avoidables(request)
print(includables, avoidables)
allow_nonpublic, include, avoid = parse_include_avoid(request, include, avoid)
print(allow_nonpublic, include, avoid)
if request.method == 'POST':
save_settings = request.POST.get('save_settings', '') == '1'