Skip to content

Commit

Permalink
update version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brethland committed Jul 24, 2019
1 parent 955fd18 commit b76f208
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Judger.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function judge($row)
$elements=$ele->children();
if($elements[0]->plaintext==$row['remote_id']) {
$verdict = trim($elements[2]->plaintext);
if(strpos($verdict, "Runtime Error")!=false) {
if(strpos($verdict, "Runtime Error") !== false) {
$sub['verdict'] = "Runtime Error";
} else {
$sub['verdict'] = $this->verdict[$verdict];
Expand Down
8 changes: 4 additions & 4 deletions Synchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ public function crawlProblem($con)
$problemModel = new ProblemModel();
$res = $this->_loginAndGet("http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid={$con}&cid=".$this->vcid);
$this->line("Crawling: {$con}\n");
if (strpos($res,"No such problem") != false) {
if (strpos($res,"No such problem") !== false) {
return false;
}
if(strpos($res,"Invalid Parameter.") != false) {
if(strpos($res,"Invalid Parameter.") !== false) {
return false;
}
$res = iconv("gb2312","utf-8//IGNORE",$res);
Expand Down Expand Up @@ -225,7 +225,7 @@ public function _clarification($id)
{
$res = $this->_loginAndGet("http://acm.hdu.edu.cn/viewnotify.php?id={$id}&cid=".$this->vcid);
$res = iconv("gb2312","utf-8//IGNORE",$res);
if(strpos($res,"No such notification.") != false) {
if(strpos($res,"No such notification.") !== false) {
return false;
} else {
$contestModel = new ContestModel();
Expand Down Expand Up @@ -291,7 +291,7 @@ public function crawlRank()
}else {
$prob['color'] = "";
}
if(strpos($matches[$j+4][$i],"-")!=false) {
if(strpos($matches[$j+4][$i],"-")!==false) {
$startM = strpos($matches[$j+4][$i],"-");
$endM = strpos($matches[$j+4][$i],")");
$prob["wrong_doings"] = intval(substr($matches[$j+4][$i],$startM+1,$endM-$startM-1));
Expand Down
2 changes: 1 addition & 1 deletion babel.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "HDU Interface for NOJ",
"license": "MIT",
"repository":"https://github.com/NJUPTAAA/NOJ_Extension_HDU",
"version":"0.3.11",
"version":"0.3.12",
"website":"http://acm.hdu.edu.cn/",
"custom":{
"css":"resources/custom.css"
Expand Down

0 comments on commit b76f208

Please sign in to comment.