7818c4ae5385e21acc6772dee72e6930860490c5,app/grandchallenge/evaluation/signals.py,,recalculate_ranks,#Any#,53
Before Change
@disable_for_loaddata
def recalculate_ranks(instance: Union[Result, Config] = None, *_, **__):
Recalculates the ranking on a new result
calculate_ranks.apply_async(kwargs={"challenge_pk": instance.challenge.pk})
@receiver(post_save, sender=Result)
@disable_for_loaddata
After Change
def recalculate_ranks(instance: Union[Result, Config] = None, *_, **__):
Recalculates the ranking on a new result
try:
challenge_pk = instance.challenge.pk
except AttributeError:
// For a Result
challenge_pk = instance.job.submission.challenge.pk
calculate_ranks.apply_async(kwargs={"challenge_pk": challenge_pk})
@receiver(post_save, sender=Result)
@disable_for_loaddata
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: comic/grand-challenge.org
Commit Name: 7818c4ae5385e21acc6772dee72e6930860490c5
Time: 2019-03-14
Author: code@jmsmkn.com
File Name: app/grandchallenge/evaluation/signals.py
Class Name:
Method Name: recalculate_ranks
Project Name: comic/grand-challenge.org
Commit Name: 62e49f63c91997fd837ce94a5d069246bb8a6b69
Time: 2020-08-18
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/components/models.py
Class Name: ComponentJob
Method Name: schedule_job
Project Name: comic/grand-challenge.org
Commit Name: 2e975bbedcca67821b1b922fadc149ea9623d29e
Time: 2020-03-20
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/evaluation/signals.py
Class Name:
Method Name: recalculate_ranks