aboutsummaryrefslogtreecommitdiff
path: root/src/fscore.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-04 13:20:51 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-04 13:20:51 +0000
commitaf925fb218e7a333759eb49c667bfb22eb71196d (patch)
tree9aa8254c42a50d2c6bb253074c54609287258053 /src/fscore.php
parent5592a6c28bdf04165d60a9579f70f9c63fc830ca (diff)
downloadboca-af925fb218e7a333759eb49c667bfb22eb71196d.tar.gz
boca-af925fb218e7a333759eb49c667bfb22eb71196d.zip
bug fixes
Diffstat (limited to 'src/fscore.php')
-rw-r--r--src/fscore.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/fscore.php b/src/fscore.php
index d87f1bd..1e6dba0 100644
--- a/src/fscore.php
+++ b/src/fscore.php
@@ -157,6 +157,26 @@ function DBScore($contest, $verifylastmile, $hor=-1, $globalsite='0') {
}
}
}
+
+ if(true) {
+ $arrori = $arr;
+ reset($arrori); //cassio cassiopc
+ $pname = array('A','B','C','D','E','F','G','H','I','J','K');
+ while(list($ee,$cc) = each($arrori)) {
+ for($pi=0; $pi < 11; $pi++) unset($arr[$ee]['problem'][$pi+1]);
+ reset($arrori[$ee]["problem"]);
+ while(list($e2,$c2) = each($arrori[$ee]["problem"])) {
+ for($pi=0; $pi < 11; $pi++)
+ if(isset($arrori[$ee]['problem'][$e2]['name']) && trim($arrori[$ee]['problem'][$e2]['name']) == $pname[$pi]) break;
+ if($pi < 11) {
+ $arr[$ee]['problem'][$pi+1] = $arrori[$ee]['problem'][$e2];
+ }
+ }
+ }
+ }
+
+
+
$resp = array_merge($resp, $arr);
}
} else {