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] windspeed = winddata[0]
windbearing = winddata[1] windbearing = winddata[1]
message = winddata[2] message = winddata[2]
try: if message is not None:
row.notes += "\n"+message try:
except TypeError: row.notes += "\n"+message
if message and row.notes: except TypeError:
row.notes += message if message is not None and row.notes is not None:
row.notes += message
row.save() row.save()
rowdata.add_wind(windspeed,windbearing) rowdata.add_wind(windspeed,windbearing)