wifi measurements have no x and y properties directly, get them from geometry

This commit is contained in:
Gwendolyn 2023-12-27 13:28:02 +01:00
parent 71359ef3cb
commit e15d178102

View file

@ -85,8 +85,8 @@ class Locator:
pk=space.pk,
points=tuple(
LocatorPoint(
x=measurement.x,
y=measurement.x,
x=measurement.geometry.x,
y=measurement.geometry.y,
values=self.convert_scans(measurement.data),
)
for measurement in space.wifi_measurements.all()