Jacek Kowalski
2019-02-19 5af1a78d931ef75400c74eecc3160230320d9860
Only replace the mapping if there are more old entries than correct ones
1 files modified
2 ■■■ changed files
parse.php 2 ●●● patch | view | raw | blame | history
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 {