File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ pub fn create_app() -> App<'static, 'static> {
357357 . help ( "Set to avoid blocking." )
358358 . long ( "dont-block" ) ) )
359359
360- . subcommand ( SubCommand :: with_name ( "fetch-old -submissions" )
360+ . subcommand ( SubCommand :: with_name ( "get-exercise -submissions" )
361361 . about ( "Fetch the current user's old submissions for an exercise." )
362362 . arg ( Arg :: with_name ( "exercise-id" )
363363 . help ( "The ID of the exercise." )
Original file line number Diff line number Diff line change @@ -840,11 +840,11 @@ fn run() -> Result<()> {
840840 } ;
841841 print_output ( & output) ?;
842842 }
843- } else if let Some ( matches) = matches. subcommand_matches ( "fetch-old -submissions" ) {
843+ } else if let Some ( matches) = matches. subcommand_matches ( "get-exercise -submissions" ) {
844844 let exercise_id = matches. value_of ( "exercise-id" ) . unwrap ( ) ;
845845 let exercise_id = into_usize ( exercise_id) ?;
846846 let submissions = core
847- . exercise_submissions ( exercise_id)
847+ . get_exercise_submissions_for_current_user ( exercise_id)
848848 . context ( "Failed to get submissions" ) ?;
849849
850850 let output = Output {
Original file line number Diff line number Diff line change @@ -488,7 +488,10 @@ impl TmcCore {
488488 self . download_submission ( submission_id, target)
489489 }
490490
491- pub fn exercise_submissions ( & self , exercise_id : usize ) -> Result < Vec < Submission > > {
491+ pub fn get_exercise_submissions_for_current_user (
492+ & self ,
493+ exercise_id : usize ,
494+ ) -> Result < Vec < Submission > > {
492495 self . exercise_submissions_for_current_user ( exercise_id)
493496 }
494497
You can’t perform that action at this time.
0 commit comments