Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python crash in SeeYou export with free format waypoint #1

Closed
dingetje opened this issue Jul 8, 2012 · 3 comments
Closed

Python crash in SeeYou export with free format waypoint #1

dingetje opened this issue Jul 8, 2012 · 3 comments

Comments

@dingetje
Copy link

dingetje commented Jul 8, 2012

  1. Create a task with a free selected waypoint (a waypoint that is not on the map).
  2. Export in SeeYou format
  3. resulting cup file contains a Python error instead of a valid SeeYou task.
@dingetje
Copy link
Author

dingetje commented Jul 8, 2012

/home/tobs/prosoar.de/util/bin/public/download_task.py in ()
64
65
66 if name == 'main':
67 main()
68
main =
/home/tobs/prosoar.de/util/bin/public/download_task.py in main()
61 print "Content-disposition: attachment; filename=" + taskname + ".cup"
62 print
63 print create_seeyou_task(task, taskname)
64
65
global create_seeyou_task = , task = <prosoar.task.task.Task instance>, taskname = '059740'
/home/tobs/prosoar.de/util/lib/prosoar/task/seeyou_writer.py in create_seeyou_task(task=<prosoar.task.task.Task instance>, taskname='059740')
18 for key, turnpoint in enumerate(task):
19 if turnpoint.name == 'Free turnpoint':
20 turnpoint.name = '{:02d} '.format(key+1) + turnpoint.name
21
22 if key == 0:
turnpoint = <prosoar.task.turnpoint.Turnpoint instance>, turnpoint.name = 'Free turnpoint', '{:02d} '.format = , key = 1

<type 'exceptions.ValueError'>: zero length field name in format
args = ('zero length field name in format',)
message = 'zero length field name in format'

@dingetje dingetje closed this as completed Jul 8, 2012
@dingetje dingetje reopened this Jul 8, 2012
@dingetje
Copy link
Author

no takers?

@TobiasLohner
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants