sheeriot / surveyor

RF Field Surveyor - A Django Project for LoRaWAN Field Performance Evaluation
0 stars 0 forks source link

Issue with parameter "Distance" on the device Map view #22

Closed mkhatun1 closed 2 months ago

mkhatun1 commented 2 months ago

On the Device Map view the distance from the GW is not showing up correctly. Here is how it shows up on the map:

Distance:{row['dist']:.2f}km

When click on the device on the map, this is how the Distance shows up. Here is a device link: https://surveyor.everynet.com/geowan/geoview/160/20240411T0551Z/20240411T2118Z/

krisdthompson commented 2 months ago

recreated the defect here: https://surveyor1.kttex.com/geowan/geoview/160/20240411T0551Z/20240411T2118Z/ fixing.

krisdthompson commented 2 months ago

fixed. Need to use F formatted strings.

krisdthompson commented 2 months ago

dist_txt = f"Distance:{row['dist']:.2f}km"

krisdthompson commented 2 months ago

all fixed and released!