aboutsummaryrefslogtreecommitdiff
path: root/rpki/gui/app/views.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-05-30 04:09:54 +0000
committerRob Austein <sra@hactrn.net>2014-05-30 04:09:54 +0000
commit6cacde4474719bae1a1e6ba0876b9d3327054ae9 (patch)
treea769e44a389f6aff01dd0f13a5cd5f81a53011c7 /rpki/gui/app/views.py
parent1c85dc6fc490658d39402089dab29ae37a05db83 (diff)
Still more PyLint.
svn path=/trunk/; revision=5850
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