Private
Public Access
1
0

small bug fix get METAR

This commit is contained in:
Sander Roosendaal
2019-04-29 08:30:44 +02:00
parent 305dc680e7
commit 6fa3e071fa

View File

@@ -1798,11 +1798,12 @@ def workout_downloadwind_view(request,id=0,
windspeed = winddata[0]
windbearing = winddata[1]
message = winddata[2]
try:
row.notes += "\n"+message
except TypeError:
if message and row.notes:
row.notes += message
if message is not None:
try:
row.notes += "\n"+message
except TypeError:
if message is not None and row.notes is not None:
row.notes += message
row.save()
rowdata.add_wind(windspeed,windbearing)