@@ -526,6 +526,7 @@ public function addAction(Request $request, FormFactoryInterface $formFactory):
526526 'before ' => $ formData ['before ' ],
527527 'after ' => $ formData ['after ' ],
528528 'referer ' => $ request ->headers ->get ('referer ' ),
529+ 'overshoot ' => $ formData ['overshoot ' ],
529530 ];
530531 return $ this ->render ('jury/rejudging_add.html.twig ' , [
531532 'data ' => http_build_query ($ data ),
@@ -639,7 +640,7 @@ public function addAction(Request $request, FormFactoryInterface $formFactory):
639640
640641 $ skipped = [];
641642 $ res = $ this ->rejudgingService ->createRejudging (
642- $ reason , (int )$ data ['priority ' ], $ judgings , false , (int )($ data ['repeat ' ] ?? 1 ), null , $ skipped , $ progressReporter );
643+ $ reason , (int )$ data ['priority ' ], $ judgings , false , (int )($ data ['repeat ' ] ?? 1 ), ( int ) ( $ data [ ' overshoot ' ] ?? 0 ), null , $ skipped , $ progressReporter );
643644 $ this ->generateFlashMessagesForSkippedJudgings ($ skipped );
644645
645646 if ($ res === null ) {
@@ -670,6 +671,7 @@ public function createAction(Request $request): Response
670671 $ autoApply = (bool )$ request ->request ->get ('auto_apply ' );
671672 $ repeat = (int )$ request ->request ->get ('repeat ' );
672673 $ priority = $ request ->request ->get ('priority ' ) ?: 'default ' ;
674+ $ overshoot = (int )$ request ->request ->get ('overshoot ' ) ?: 0 ;
673675
674676 if (empty ($ table ) || empty ($ id )) {
675677 throw new BadRequestHttpException ('No table or id passed for selection in rejudging ' );
@@ -723,7 +725,7 @@ public function createAction(Request $request): Response
723725 flush ();
724726 };
725727
726- return $ this ->streamResponse ($ this ->requestStack , function () use ($ priority , $ progressReporter , $ repeat , $ reason , $ request , $ autoApply , $ includeAll , $ id , $ table , $ tablemap ) {
728+ return $ this ->streamResponse ($ this ->requestStack , function () use ($ priority , $ progressReporter , $ repeat , $ reason , $ overshoot , $ request , $ autoApply , $ includeAll , $ id , $ table , $ tablemap ) {
727729 // Only rejudge submissions in active contests.
728730 $ contests = $ this ->dj ->getCurrentContests ();
729731
@@ -773,7 +775,7 @@ public function createAction(Request $request): Response
773775 }
774776
775777 $ skipped = [];
776- $ res = $ this ->rejudgingService ->createRejudging ($ reason , JudgeTask::parsePriority ($ priority ), $ judgings , $ autoApply , $ repeat , null , $ skipped , $ progressReporter );
778+ $ res = $ this ->rejudgingService ->createRejudging ($ reason , JudgeTask::parsePriority ($ priority ), $ judgings , $ autoApply , $ repeat , $ overshoot , null , $ skipped , $ progressReporter );
777779
778780 if ($ res === null ) {
779781 $ prefix = sprintf ('%s%s ' , $ request ->getSchemeAndHttpHost (), $ request ->getBasePath ());
0 commit comments