Compare commits

..

No commits in common. "2d7efeaf099a9b46e236a5301dd9cadc38a34a50" and "f8f95db5c3b7e576371ca822ae600413f5040cc1" have entirely different histories.

2 changed files with 9 additions and 8 deletions

View File

@ -1 +1 @@
__version__ = "2025.3.0"
__version__ = "2025.2.0"

View File

@ -39,14 +39,15 @@ def get_last_submission(settings, submissions, submission=None):
if submission is not None and submission.state != SubmissionStates.SUBMITTED:
submission = None
submissions = submissions.filter(
submission_type__in=settings.submission_types.all(),
state=SubmissionStates.SUBMITTED,
return (
submission
or submissions.filter(
submission_type__in=settings.submission_types.all(),
state=SubmissionStates.SUBMITTED,
)
.order_by("created")
.first()
)
if submission is not None and not submissions.filter(pk=submission.pk).exists():
submission = None
return submission or submissions.order_by("created").first()
class JoinView(TemplateView):