Skip to content

Commit b713701

Browse files
authored
Update MoodleIntegration.md
1 parent ac64708 commit b713701

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

wiki/MoodleIntegration.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,21 @@ chown -R www-data /home/judge/src/
4848
refresh OJ web will show the Moodle Link on top left, click to begain install moodle.
4949
刷新OJ页,得到右上角的Moodle入口,点击开始安装流程。
5050

51-
52-
51+
link two system 关联两个系统
52+
--
5353

5454
let students use same username in both system.
5555
让学生在两个系统中用相同的用户名注册。
5656

5757

58-
add text-homework with title [OJ]-C1000 for OJ Contest 1000
58+
add a contest in HUSTOJ for example Contest 1000
59+
在HUSTOJ中添加一个比赛,获得比赛编号1000
60+
61+
add a text-homework in moodle with title [OJ]-C1000 for OJ Contest 1000.
62+
在moodle中添加一个文本作业,标题命名为[OJ]-C1000,其中的1000表示OJ中对应的比赛编号。
5963

60-
add trigger
64+
add trigger 添加触发器
65+
--
6166
```
6267
DELIMITER $$
6368
DROP trigger IF EXISTS `jol`.`tri_moodle` $$
@@ -79,7 +84,8 @@ begin
7984
end $$
8085
DELIMITER ;
8186
```
82-
add procedure
87+
add procedure 添加存储过程
88+
--
8389
```
8490
DELIMITER $$
8591
CREATE DEFINER=`debian-sys-maint`@`localhost` PROCEDURE `update_moodle`(IN `cid` INT, IN `user_id` VARCHAR(20), IN `mark` INT)
@@ -131,3 +137,16 @@ END$$
131137
DELIMITER ;
132138
133139
```
140+
Expecting Result 预期效果
141+
--
142+
when students submit solution in hustoj , moodle will show the latest mark for the contest in 0-100.
143+
当学生在hustoj中提交代码,moodle将在作业里同步显示他们的最新成绩。
144+
145+
146+
147+
148+
149+
150+
151+
152+

0 commit comments

Comments
 (0)