diff --git a/src/scripts/results.tag b/src/scripts/results.tag index dcdaf4e..a01ff3a 100644 --- a/src/scripts/results.tag +++ b/src/scripts/results.tag @@ -1,6 +1,9 @@
- + 0} class="course-row columns" each={ rows } data="{ this }" classrow={ row }> +
+ No Results, Sorry! +
- - - -{% endblock %} - + + + + + + + diff --git a/src/visualize.py b/src/visualize.py index 3ec1098..215296f 100755 --- a/src/visualize.py +++ b/src/visualize.py @@ -9,24 +9,8 @@ from operator import attrgetter import pygal import csv -class Textbook(object): - def __init__(self, dept, code, title, author, price): - self.dept = dept - self.code = code - self.title = title - self.author = author - self.price = float(price) - - def __repr__(self): - return "Dept = %s, Code = %s, %s by %s, costs $%s" % (self.dept, - self.code, - self.title, - self.author, - self.price) - - def courses(): - with open("./books.csv", "r") as books: + with open("./mcmaster/courses.csv", "r") as books: booksreader = csv.reader(books) for row in booksreader: yield row diff --git a/src/website.py b/src/website.py index bdbd64c..a543202 100755 --- a/src/website.py +++ b/src/website.py @@ -142,7 +142,6 @@ def ClassSearch(configfile=None): app = Flask(__name__) app.register_blueprint(blueprint, url_prefix="/search") - Bootstrap(app) #app.config["scripts"] = "./scripts" #app.config["styles"] = "./styles" return app