@aliases("<STR_LIT>")<EOL>@selected_course<EOL>@false_exit<EOL>def skip(course, num=<NUM_LIT:1>):
sel = None<EOL>try:<EOL><INDENT>sel = Exercise.get_selected()<EOL>if sel.course.tid != course.tid:<EOL><INDENT>sel = None<EOL><DEDENT><DEDENT>except NoExerciseSelected:<EOL><INDENT>pass<EOL><DEDENT>if sel is None:<EOL><INDENT>sel = course.exercises.first()<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>sel = Exercise.get(Exercise.id == sel.id + num)<EOL><DEDENT>except peewee.DoesNotExist:<EOL><INDENT>print("<STR_LIT>")<EOL>return False<EOL><DEDENT><DEDENT>sel.set_select()<EOL>list_all(single=sel)<EOL>
Go to the next exercise.