def selected_exercise(func):
@wraps(func)<EOL>def inner(*args, **kwargs):<EOL><INDENT>exercise = Exercise.get_selected()<EOL>return func(exercise, *args, **kwargs)<EOL><DEDENT>return inner<EOL>
Passes the selected exercise as the first argument to func.