mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
Removed empty exclude
This commit is contained in:
parent
1cde295a0e
commit
2468628ed9
@ -391,8 +391,7 @@ class PowerPort(CableTermination, ComponentModel):
|
||||
power_outlets = power_outlets.filter(feed_leg=leg)
|
||||
|
||||
# Cannot be cached as it will otherwise not update the per-leg stats when an outlet's leg changes.
|
||||
connected_power_ports = PowerPort.objects.exclude(pk__in=visited_power_ports).filter(
|
||||
_connected_poweroutlet__in=power_outlets).nocache()
|
||||
connected_power_ports = PowerPort.objects.filter(_connected_poweroutlet__in=power_outlets).nocache()
|
||||
|
||||
# Only count the local outlets (i.e. ignore non-immediate ones)
|
||||
outlet_count = power_outlets.count()
|
||||
|
Loading…
Reference in New Issue
Block a user