Browse Source

Correct typo.

cfd
Tom Payne 13 years ago
parent
commit
090b0324d5
  1. 6
      bin/leonardo2kmz.py

6
bin/leonardo2kmz.py

@ -176,11 +176,11 @@ def main(argv):
pilot_id = '%(userServerID)d_%(userID)d' % flight_row
else:
pilot_id = flight_row.userID
substituions = {
substitutions = {
'PILOTID': str(pilot_id),
'YEAR': str(flight_row.DATE.year),
}
igc_path = os.path.join(substitute(options.igc_path, substituions),
igc_path = os.path.join(substitute(options.igc_path, substitutions),
flight_row.filename + options.igc_suffix)
track = IGC(open(igc_path), date=flight_row.DATE).track()
flight = Flight(track)
@ -234,7 +234,7 @@ def main(argv):
== flight_row.ID)
for photo_row in select.execute().fetchall():
photo_url = options.url + PHOTO_URL % photo_row
photo_path = os.path.join(substitute(options.photo_path, substituions),
photo_path = os.path.join(substitute(options.photo_path, substitutions),
flight_row.filename + options.photo_suffix)
photo = Photo(photo_url, path=photo_path)
if photo_row.description:

Loading…
Cancel
Save