parse.php
@@ -79,7 +79,7 @@ $previousMapping = NULL; if($incorrect > $correct && $maxWeight > $weight) { throw new Exception('Ignoring result due to better data already present'); } elseif($old > 0 && $incorrect == 0) { } elseif($old > $correct) { $logger->warn('Replacing DB data with the new mapping'); $db->clear(); } else { @@ -90,7 +90,7 @@ if(is_array($previousMapping)) { $logger->info('Merging previous data with current mapping'); $mapping = $previousMapping + $mapping; $mapping = $mapping + $previousMapping; ksort($mapping); }