From 087f62c3047eb32841cbf0f8f295e73c1d2b6707 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Wed, 25 Jun 2025 02:42:37 -0400 Subject: [PATCH] feat: add unix timestamp back for backward compatibility --- joj3_config_generator/generator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/joj3_config_generator/generator.py b/joj3_config_generator/generator.py index f4a389c..f009eaf 100644 --- a/joj3_config_generator/generator.py +++ b/joj3_config_generator/generator.py @@ -26,8 +26,9 @@ def convert_joj3_conf(repo_conf: repo.Config, task_conf: task.Config) -> result. name=task_conf.task.name, # exact folder difference specified by type log_path=str(JOJ3_LOG_PATH), - expire_unix_timestamp=0, # will be handled in the health check stage - effective_unix_timestamp=0, # will be handled in the health check stage + # TODO: remove these 2 fields, will be handled in the health check stage + expire_unix_timestamp=int(task_conf.release.end_time.timestamp()), + effective_unix_timestamp=int(task_conf.release.begin_time.timestamp()), actor_csv_path=str(ACTOR_CSV_PATH), # students.csv position max_total_score=( repo_conf.max_total_score