Rescore after changing time

This commit is contained in:
cuom1999 2023-01-04 15:12:41 -06:00
parent a512694976
commit d42cf64abd

View file

@ -285,7 +285,14 @@ class ContestAdmin(CompareVersionAdmin):
self._rescored = False self._rescored = False
if form.changed_data and any( if form.changed_data and any(
f in form.changed_data f in form.changed_data
for f in ("format_config", "format_name", "freeze_after") for f in (
"start_time",
"end_time",
"time_limit",
"format_config",
"format_name",
"freeze_after",
)
): ):
self._rescore(obj.key) self._rescore(obj.key)
self._rescored = True self._rescored = True