1e007444d2cee61299ad5bbd6f000a3a464436ec,app/grandchallenge/evaluation/views.py,SubmissionCreateBase,get_next_submission,#,113
Before Change
if now is None:
now = timezone.now()
subs = Submission.objects.filter(
challenge=self.request.challenge,
creator=self.request.user,
created__gte=now - period,
).order_by("-created")
try:
next_sub_at = subs[max_subs - 1].created + period
except (IndexError, AssertionError):
next_sub_at = now
After Change
if now is None:
now = timezone.now()
subs = (
Submission.objects.filter(
challenge=self.request.challenge,
creator=self.request.user,
created__gte=now - period,
)
.exclude(job__status=Job.FAILURE)
.order_by("-created")
.distinct()
)
try:
next_sub_at = subs[max_subs - 1].created + period
except (IndexError, AssertionError):
next_sub_at = now
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: comic/grand-challenge.org
Commit Name: 1e007444d2cee61299ad5bbd6f000a3a464436ec
Time: 2018-10-04
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/evaluation/views.py
Class Name: SubmissionCreateBase
Method Name: get_next_submission
Project Name: samuelclay/NewsBlur
Commit Name: ffe07db5c8526781a94ac93967c711345d1ee966
Time: 2013-03-14
Author: samuel@ofbrooklyn.com
File Name: apps/rss_feeds/tasks.py
Class Name: TaskFeeds
Method Name: run
Project Name: comic/grand-challenge.org
Commit Name: af723d69eca8d72a757500ba6c4128443c4c765a
Time: 2019-07-29
Author: code@jmsmkn.com
File Name: app/grandchallenge/reader_studies/views.py
Class Name: ReaderStudyUserAutocomplete
Method Name: get_queryset
Project Name: snorkel-team/snorkel
Commit Name: 96b45a122873c3109fbf231d2b9ebbc2e8f53666
Time: 2016-09-03
Author: stephenhbach@gmail.com
File Name: snorkel/annotations.py
Class Name: AnnotationManager
Method Name: load