Skip to content

Commit

Permalink
Merge pull request #54 from kshvmdn/master
Browse files Browse the repository at this point in the history
Add campus key
  • Loading branch information
qasim committed Apr 17, 2016
2 parents e92b059 + ef9c8bc commit e1d388e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ uoftscrapers.Athletics
{
"id": String,
"date": String,
"campus": String,
"events":[{
"title": String,
"location": String,
Expand Down
1 change: 1 addition & 0 deletions uoftscrapers/scrapers/athletics/utm.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def scrape(location='.', month=None):
athletics[id_] = OrderedDict([
('id', id_),
('date', date),
('campus', 'UTM'),
('events', events)
])

Expand Down
3 changes: 2 additions & 1 deletion uoftscrapers/scrapers/athletics/utsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def scrape(location='.', month=None):
end = item.find(class_='date-display-end').get('content')

events.append(OrderedDict([
('title', title),
('title', title.replace('/ ', '/')),
('location', location_),
('building_id', '208'),
('start_time', start),
Expand All @@ -59,6 +59,7 @@ def scrape(location='.', month=None):
athletics[id_] = OrderedDict([
('id', id_),
('date', date),
('campus', 'UTSC'),
('events', events)
])

Expand Down

0 comments on commit e1d388e

Please sign in to comment.