aboutsummaryrefslogtreecommitdiff
path: root/rpki/gui/app/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpki/gui/app/views.py')
-rw-r--r--rpki/gui/app/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpki/gui/app/views.py b/rpki/gui/app/views.py
index f5391790..9a1c4cfe 100644
--- a/rpki/gui/app/views.py
+++ b/rpki/gui/app/views.py
@@ -570,7 +570,7 @@ def get_covered_routes(rng, max_prefixlen, asn):
# if the route was previously unknown (no covering
# ROAs), then:
# if the AS matches, it is valid, otherwise invalid
- if (route.asn != 0 and route.asn == asn and route.prefixlen <= max_prefixlen):
+ if route.asn != 0 and route.asn == asn and route.prefixlen <= max_prefixlen:
route.newstatus = 'valid'
else:
route.newstatus = 'invalid'
@@ -874,7 +874,7 @@ def roa_export(request):
class GhostbusterDetailView(DetailView):
def get_queryset(self):
- conf = get_conf(self.request.user, self.request.session['handle'])
+ conf = get_conf(self.request.user, self.request.session['handle'])
return conf.ghostbusters