Get the Lon/Lat fields correct in the comments too..

This commit is contained in:
Seb Harrington 2024-04-20 21:45:56 +01:00 committed by GitHub
parent 93f4691729
commit a10435e101
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ LatLon = tuple[float, float]
def get_device_location(device: Device) -> LatLon | None:
"""If netbox longitude and latitude fields are populated for a device then use them."""
"""If netbox latitude and longitude fields are populated for a device then use them."""
if device.latitude and device.longitude:
return (device.latitude, device.longitude)
"""... Otherwise extract device geolocation from special custom field"""