Skip to content

Commit

Permalink
Get algorithm directly from field data
Browse files Browse the repository at this point in the history
  • Loading branch information
koopmant committed Nov 22, 2024
1 parent 3777c19 commit f380f39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/grandchallenge/evaluation/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,11 +662,11 @@ def check_submission_limit_avoidance(self, *, creator):
def save(self, *args, **kwargs):
if self._phase.submission_kind == SubmissionKindChoices.ALGORITHM:
self.instance.algorithm_requires_gpu_type = self.cleaned_data[
"algorithm_image"
].algorithm.job_requires_gpu_type
"algorithm"
].job_requires_gpu_type
self.instance.algorithm_requires_memory_gb = self.cleaned_data[
"algorithm_image"
].algorithm.job_requires_memory_gb
"algorithm"
].job_requires_memory_gb
else:
self.instance.algorithm_requires_gpu_type = GPUTypeChoices.NO_GPU
self.instance.algorithm_requires_memory_gb = 0
Expand Down

0 comments on commit f380f39

Please sign in to comment.