From 38d03a59c1988a4fc2f8b272fa0039640b5ba094 Mon Sep 17 00:00:00 2001 From: wes Date: Mon, 8 Aug 2016 15:21:34 -0400 Subject: [PATCH] update old code to update database --- src/goasearch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/goasearch.py b/src/goasearch.py index b661f87..a0852fc 100755 --- a/src/goasearch.py +++ b/src/goasearch.py @@ -1,7 +1,8 @@ #! /usr/bin/python2 from search import indexListing from textbookExceptions import UnIndexable -from mcmaster.classes import allCourses, classToJSON, indexListing +from mcmaster.classes import allCourses +from search import indexListing, createIndex from itertools import imap try: @@ -11,7 +12,7 @@ except Exception as e: print e print "Downloading course info" -for c in imap(classToJSON, allCourses()): +for c in allCourses(): try: print indexListing(c) except UnIndexable as e: