fix: parse + store

This commit is contained in:
Loïc Gremaud 2026-05-15 03:31:20 +02:00
parent 6d996a4e2f
commit 65cc2e555f
Signed by: Legrems
GPG Key ID: D4620E6DF3E0121D
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
from django.contrib import admin
from noita.services.objectives import parse_objectives_from_logfile
from noita.services.objectives import parse_objectives_and_store
from .models import LogfileSubmission, Objectiv, ObjectivPoint, DeathCounter
@ -29,7 +29,7 @@ class LogfileSubmissionAdmin(admin.ModelAdmin):
def validate_submission(self, request, queryset):
for logfile in queryset:
parse_objectives_from_logfile(logfile)
parse_objectives_and_store(logfile)
self.message_user(request, f"{queryset.count()} submissions validated.")

View File

@ -27,7 +27,6 @@ def parse_objectives_and_store(logfile: LogfileSubmission) -> None:
objectives = []
deaths = []
for idx, seed, ts in parse_objectives_from_logfile(logfile):
print(idx, seed, ts)
if idx in {"-", "DEBUG", "polylan-mod"}:
continue