fix(课堂看板): 作业里有 SQL 题就布置不上去(报「不能用 C 交」),也没法布置一节 SQL 课
- 布置作业的语言加上 SQL,数据库课整节选 SQL - C / Python 的作业里可以夹 SQL 题:SQL 题只收 SQL,不受作业语言限制,交对 SQL 就算做完 (学生首页课堂条、看板格子、班里做了几个人三处一起改) - 看板点 SQL 题的格子,提交列表按 SQL 筛,不再是一片空白;提交列表「这节课」遇到夹了 SQL 题的作业不再按 C 筛 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
98dfcc1e7e
commit
fcf63c2ecb
7 files changed
+71
-42
No files matched your search
@@ -42,7 +42,7 @@ import {
|
||||
type FlowchartStatistics,
|
||||
type SubmissionStatistics,
|
||||
type SubmissionLessons,
|
||||
type RunnableLanguage,
|
||||
type LessonLanguage,
|
||||
type SubmissionStatisticsGrid,
|
||||
type TodaySubmissionStatistics,
|
||||
} from "@oj2/contract"
|
||||
@@ -261,7 +261,7 @@ export function getClassLesson(className?: string) {
|
||||
export function setClassLesson(
|
||||
className: string,
|
||||
problemDisplayIds: string[],
|
||||
language: RunnableLanguage | null,
|
||||
language: LessonLanguage | null,
|
||||
) {
|
||||
return api.put<null>("classroom/lesson", { className, problemDisplayIds, language })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user