Compare commits

..

No commits in common. "main" and "v2025.5.0" have entirely different histories.

2 changed files with 6 additions and 13 deletions

View File

@ -1 +1 @@
__version__ = "2025.6.1"
__version__ = "2025.5.0"

View File

@ -20,9 +20,6 @@ class Command(BaseCommand):
help = "Compute submission scores from ratings"
def add_arguments(self, parser):
parser.add_argument(
"-a", "--all", action="store_true", help="include frozen jurors"
)
parser.add_argument("event")
def handle(self, *args, **kwargs):
@ -34,15 +31,11 @@ class Command(BaseCommand):
with scope(event=event):
submissions = {}
jurors = event.jurors.prefetch_related("ratings__submission").order_by(
"token"
)
if not kwargs["all"]:
jurors = jurors.filter(frozen=False)
self.stderr.write(f"computing scores from {jurors.count()} jurors")
for juror in jurors:
for juror in (
event.jurors.prefetch_related("ratings__submission")
.filter(frozen=False)
.order_by("token")
):
ratings = list(
juror.ratings.exclude(rating="").order_by("submission__created")
)