mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 19:08:38 -06:00
Pep8 Fixes
This commit is contained in:
parent
fe0fa743c4
commit
e648c2bc50
@ -327,12 +327,13 @@ class Prefix(CreatedUpdatedModel, CustomFieldModel):
|
||||
ipaddress_count = child_ips.count()
|
||||
|
||||
if self.prefix.version == 4 and self.prefix.prefixlen < 31:
|
||||
return int(((float(ipaddress_count) + 2 )/self.prefix.size) * 100)
|
||||
return int(((float(ipaddress_count) + 2) / self.prefix.size) * 100)
|
||||
else:
|
||||
return int((float(ipaddress_count) / self.prefix.size ) * 100)
|
||||
return int((float(ipaddress_count) / self.prefix.size) * 100)
|
||||
else:
|
||||
return 0
|
||||
|
||||
|
||||
class IPAddressManager(models.Manager):
|
||||
|
||||
def get_queryset(self):
|
||||
|
Loading…
Reference in New Issue
Block a user