# HG changeset patch # User Nathan Phillip Brink # Date 2012-02-15 09:18:53 # Node ID 877c1fbf1cd00b22ce1699011d0a55205005f684 # Parent af2373233b2e74d1674883031eb1bc034f4e429f Don't disable autocomplete for schools which failed to crawl in the last rehash. This is especially important for hope as http://plus.hope.edu/ seems to always 503 in the middle of the night when we crawl it. Before this commit, that means that the otherwise valid crawl data associated with hope would be available in cache/ but would be ignored because hope was marked as uncrawled. diff --git a/inc/admin.inc b/inc/admin.inc --- a/inc/admin.inc +++ b/inc/admin.inc @@ -237,7 +237,9 @@ function school_crawl(array &$school, Pa error_log('Unable to create needed directory: `' . $cache_auto_dir_name . '\''); } - $school['crawled'] = FALSE; + if (empty($school['crawled'])) + $school['crawled'] = FALSE; + $school['crawled_notreally'] = TRUE; $school_crawl_semesters_list_func = $school['id'] . '_crawl_semester_list'; if (!function_exists($school_crawl_semesters_list_func)) @@ -327,6 +329,7 @@ function school_crawl(array &$school, Pa } $school['crawled'] = TRUE; + unset($school['crawled_notreally']); $school['crawled_semesters'] = $successful_semesters; return $school_crawl_log;