Changeset - 877c1fbf1cd0
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 14 years ago 2012-02-15 09:18:53
ohnobinki@ohnopublishing.net
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.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
inc/admin.inc
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)