From 6297ae8ffd257689c41c411ce3fa13512910b657 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 10 Apr 2014 08:29:58 +0100 Subject: [PATCH] Fix bad usage of a reserved word --- app/timer/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/timer/views.py b/app/timer/views.py index db36f10..99ab1ff 100644 --- a/app/timer/views.py +++ b/app/timer/views.py @@ -19,12 +19,12 @@ class TimerListView(ListView): if int(self.request.GET.get('all', 0)) == 0: qs = qs.filter(expiration__gt=now()) - type = int(self.request.GET.get('type', 0)) - if type == 1: + typ = int(self.request.GET.get('type', 0)) + if typ == 1: qs = [m for m in qs if m.location.get_type == 'Station'] - if type == 2: + if typ == 2: qs = [m for m in qs if m.location.get_type == 'System'] - if type == 3: + if typ == 3: qs = [m for m in qs if m.location.get_type == 'Moon'] return qs @@ -35,4 +35,4 @@ class TimerListView(ListView): 'list_all': int(self.request.GET.get('all', 0)), 'list_type': int(self.request.GET.get('type', 0)), }) - return ctx \ No newline at end of file + return ctx