From 216cc039e24363d7d0cf26881dc44cdb7ab7c318 Mon Sep 17 00:00:00 2001 From: Sriram Hariharan Date: Sat, 7 Jul 2018 17:06:55 -0500 Subject: [PATCH] fixed some bugs --- content.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content.js b/content.js index aef6cc42..ee45268f 100644 --- a/content.js +++ b/content.js @@ -57,7 +57,9 @@ function getCourseInfo(row){ profname = $(this).find('td[data-th="Instructor"]').text().split(', ')[0]; profinit = $(this).find('td[data-th="Instructor"]').text().split(',')[1]; //COME BACK AND FINISH - console.log($(this).find('td[data-th="Days"] >span').text()); + $(this).find('td[data-th="Days"] >span').each(function(){ + console.log($(this).text()); + }); return false; } }); @@ -72,6 +74,7 @@ function getDistribution(){ query += " where dept like '%"+department+"%'"; query += " and prof like '%"+profname+"%'"; query += " and course_nbr like '%"+course_nbr+"%'"; + console.log(query); var res = grades.exec(query)[0]; console.log(res); var output = "";