Commit 7fb6ae2d authored by jlopez's avatar jlopez
Browse files

Fix bugs conda

parent 5c2bdcb2
......@@ -420,17 +420,16 @@ function findCondaPackage($os_name, $version_num, $version_name, $keyword, $limi
for ($i = 1; $i <= $size; $i++) {
$values = $tr[$i]->childNodes[5]->childNodes;
$check = $tr[$i]->nodeValue;
if($values == null) {
if($check == null) {
continue;
}
$vv = $tr[$i]->getElementsByTagName('a')[1];
$name = $vv->childNodes[1]->nodeValue;
$version = $vv->childNodes[3]->nodeValue;
$description = cleanValue($values[2]->nodeValue);
$description = cleanValue($vv->parentNode->parentNode->childNodes[2]->nodeValue);
$other = $tr[$i]->childNodes[3]->nodeValue;
$link = "https://anaconda.org/conda-forge/".$name;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment