34fb7ae750095c01926f7af255da89ebf741cb61,app/grandchallenge/algorithms/tasks.py,,create_algorithm_jobs,#,17
Before Change
@shared_task
def create_algorithm_jobs(*_, upload_session_pk):
session = RawImageUploadSession.objects.select_related(
"algorithm_image__algorithm"
).get(pk=upload_session_pk)
default_input_interface = ComponentInterface.objects.get(
slug=DEFAULT_INPUT_INTERFACE_SLUG
)
After Change
)
if algorithm_image:
creator = None if session is None else session.creator
if creator:
if (
not session.algorithm_image.algorithm.is_editor(creator)
and session.algorithm_image.algorithm.credits_per_job > 0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: comic/grand-challenge.org
Commit Name: 34fb7ae750095c01926f7af255da89ebf741cb61
Time: 2020-11-30
Author: HarmvZ@users.noreply.github.com
File Name: app/grandchallenge/algorithms/tasks.py
Class Name:
Method Name: create_algorithm_jobs
Project Name: MTG/freesound
Commit Name: aed81ab621abf2bc6fc10be4b1b42c932750490f
Time: 2018-01-05
Author: andres.ferraro@upf.edu
File Name: accounts/views.py
Class Name:
Method Name: account
Project Name: comic/grand-challenge.org
Commit Name: 91a06a37c8cdaa330891c40061a618924301ed7a
Time: 2018-08-30
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/serving/views.py
Class Name:
Method Name: serve_images