Browse Source

css update, add csv and ods files of data

master
wes 9 years ago
parent
commit
781cce75d7
  1. 3851
      src/mcmaster/courses.csv
  2. BIN
      src/mcmaster/courses.ods
  3. BIN
      src/mcmaster/fall_course_schedule.ods
  4. 23
      src/mcmaster/spreadsheet.py
  5. 6
      src/styles/search.scss

3851
src/mcmaster/courses.csv

File diff suppressed because it is too large

BIN
src/mcmaster/courses.ods

Binary file not shown.

BIN
src/mcmaster/fall_course_schedule.ods

Binary file not shown.

23
src/mcmaster/spreadsheet.py

@ -0,0 +1,23 @@
#! /usr/bin/python2
from classes import fallCourses
import csv
def getCourses():
for course in fallCourses():
for (_, section) in course:
try:
day, start, end = section.date
except:
continue
if section.prof != "Staff":
try:
startTime = "%s:%s %s" % (start[0], start[1], start[2])
endTime = "%s:%s %s" % (end[0], end[1], end[2])
yield (course.title, course.dept, course.code, day, startTime, endTime, section.loc, section.prof)
except:
continue
with open("./courses.csv", "wb") as coursefile:
writer = csv.writer(coursefile)
writer.writerows(getCourses())

6
src/styles/search.scss

@ -48,12 +48,12 @@ a {
.courses {
@media (min-width: 1335px) {
margin-top: 100px;
margin-top: 20px;
max-width: 75%;
}
@media (max-width: 1366px) {
margin-top: 100px;
margin-top: 20px;
max-width: 85%;
}
}
@ -94,7 +94,7 @@ a {
z-index: 1000;
float: left;
display: none;
min-width: 160px;
min-width: 160px;
padding: 4px 0;
margin: 0 0 10px 25px;
list-style: none;

Loading…
Cancel
Save