Skip to content

Commit

Permalink
Fix ";" instead of "," as delimter for seeyou/pics (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
bubeck committed Dec 20, 2023
1 parent 52c7027 commit bf90321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aerofiles/seeyou/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def format_distance(self, distance):
def format_pics(self, pics):
if pics is None or pics == []:
return u''
return self.escape(','.join(pics))
return self.escape(';'.join(pics))

def format_time(self, time):
if isinstance(time, datetime.datetime):
Expand Down
2 changes: 1 addition & 1 deletion tests/seeyou/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_write14_waypoint(writer14):
)
assert writer14.fp.getvalue() == \
b'name,code,country,lat,lon,elev,style,rwdir,rwlen,rwwidth,freq,desc,userdata,pics\r\n' \
b'"Meiersberg","MEIER",DE,5107.345N,00624.765E,,1,,,80m,,,"ThisIsUserData","A,B,C"\r\n'
b'"Meiersberg","MEIER",DE,5107.345N,00624.765E,,1,,,80m,,,"ThisIsUserData","A;B;C"\r\n'


def test_write14_waypoint_empty_pics_1(writer14):
Expand Down

0 comments on commit bf90321

Please sign in to comment.