@@ -526,6 +526,7 @@ public function addAction(Request $request, FormFactoryInterface $formFactory):
526
526
'before ' => $ formData ['before ' ],
527
527
'after ' => $ formData ['after ' ],
528
528
'referer ' => $ request ->headers ->get ('referer ' ),
529
+ 'overshoot ' => $ formData ['overshoot ' ],
529
530
];
530
531
return $ this ->render ('jury/rejudging_add.html.twig ' , [
531
532
'data ' => http_build_query ($ data ),
@@ -639,7 +640,7 @@ public function addAction(Request $request, FormFactoryInterface $formFactory):
639
640
640
641
$ skipped = [];
641
642
$ 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 );
643
644
$ this ->generateFlashMessagesForSkippedJudgings ($ skipped );
644
645
645
646
if ($ res === null ) {
@@ -670,6 +671,7 @@ public function createAction(Request $request): Response
670
671
$ autoApply = (bool )$ request ->request ->get ('auto_apply ' );
671
672
$ repeat = (int )$ request ->request ->get ('repeat ' );
672
673
$ priority = $ request ->request ->get ('priority ' ) ?: 'default ' ;
674
+ $ overshoot = (int )$ request ->request ->get ('overshoot ' ) ?: 0 ;
673
675
674
676
if (empty ($ table ) || empty ($ id )) {
675
677
throw new BadRequestHttpException ('No table or id passed for selection in rejudging ' );
@@ -723,7 +725,7 @@ public function createAction(Request $request): Response
723
725
flush ();
724
726
};
725
727
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 ) {
727
729
// Only rejudge submissions in active contests.
728
730
$ contests = $ this ->dj ->getCurrentContests ();
729
731
@@ -773,7 +775,7 @@ public function createAction(Request $request): Response
773
775
}
774
776
775
777
$ 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 );
777
779
778
780
if ($ res === null ) {
779
781
$ prefix = sprintf ('%s%s ' , $ request ->getSchemeAndHttpHost (), $ request ->getBasePath ());
0 commit comments