File tree Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -48,16 +48,21 @@ chown -R www-data /home/judge/src/
48
48
refresh OJ web will show the Moodle Link on top left, click to begain install moodle.
49
49
刷新OJ页,得到右上角的Moodle入口,点击开始安装流程。
50
50
51
-
52
-
51
+ link two system 关联两个系统
52
+ --
53
53
54
54
let students use same username in both system.
55
55
让学生在两个系统中用相同的用户名注册。
56
56
57
57
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中对应的比赛编号。
59
63
60
- add trigger
64
+ add trigger 添加触发器
65
+ --
61
66
```
62
67
DELIMITER $$
63
68
DROP trigger IF EXISTS `jol`.`tri_moodle` $$
79
84
end $$
80
85
DELIMITER ;
81
86
```
82
- add procedure
87
+ add procedure 添加存储过程
88
+ --
83
89
```
84
90
DELIMITER $$
85
91
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$$
131
137
DELIMITER ;
132
138
133
139
```
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
+
You can’t perform that action at this time.
0 commit comments