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,10 +1798,11 @@ 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]
if message is not None:
try: try:
row.notes += "\n"+message row.notes += "\n"+message
except TypeError: except TypeError:
if message and row.notes: if message is not None and row.notes is not None:
row.notes += message row.notes += message
row.save() row.save()