fix: hydro_pid 修正为 1021(HydroOJ 题目无 P 前缀)
这个提交包含在:
@@ -29,11 +29,11 @@ class ProblemRepo:
|
||||
|
||||
def seed_defaults(self) -> None:
|
||||
"""M1 种子题目:P1021 最大值位置(含选择题 + 公式解释 + 测试点)。"""
|
||||
if self.get_by_hydro_pid("P1021"):
|
||||
if self.get_by_hydro_pid("1021"):
|
||||
return
|
||||
self.session.add(
|
||||
Problem(
|
||||
hydro_pid="P1021",
|
||||
hydro_pid="1021",
|
||||
title="最大值位置",
|
||||
course="ap-csa",
|
||||
unit="04 for循环与数组",
|
||||
|
||||
+1
-1
@@ -403,7 +403,7 @@ function renderJudgeCard(result, code){
|
||||
function fetchJudge(code){
|
||||
var dot=document.getElementById('sendDot');
|
||||
fetch(API_BASE+'/api/judge', {method:'POST', headers:{'Content-Type':'application/json'},
|
||||
body:JSON.stringify({pid:(CUR_PROBLEM&&CUR_PROBLEM.hydro_pid)||'P1021', lang:'java', code:code, uid:UID})})
|
||||
body:JSON.stringify({pid:(CUR_PROBLEM&&CUR_PROBLEM.hydro_pid)||'1021', lang:'java', code:code, uid:UID})})
|
||||
.then(function(r){ return r.json(); }).then(function(d){
|
||||
if(!d.rid){ addMsg('judge','<div class="judge-card"><div class="jc-status jc-err">⛔ <span class="verdict-pill v-err">提交失败</span></div><div class="jc-body">'+(d.detail||'后端未就绪')+'</div></div>'); fallbackJudge(code); PENDING=false; dot.disabled=false; return; }
|
||||
LAST_RID=d.rid;
|
||||
|
||||
在新工单中引用
屏蔽一个用户