update
This commit is contained in:
1 file changed
+1
-1
@@ -795,7 +795,7 @@ async def update_score(judge_id: str, score_data: ScoreDetailUpdate):
|
||||
VALUES (?, ?, ?, ?)
|
||||
ON CONFLICT(judge_id, program_sn) DO UPDATE SET
|
||||
{field_map[score_data.field]} = excluded.{field_map[score_data.field]},
|
||||
updated_at = excluded.updated_at,
|
||||
updated_at = excluded.updated_at
|
||||
""",
|
||||
(judge_id, score_data.program_sn, val, datetime.now()),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user