Skip to content

Commit

Permalink
don't titleize (messes up numbering 1st 2nd 3rd)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezwang committed Oct 24, 2018
1 parent e6dbcc0 commit 72bd6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion penn/fitness.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_usage(self):
for item in soup.findAll("div", {"class": "barChart"}):
data = [x.strip() for x in item.get_text("\n").strip().split("\n")]
data = [x for x in data if x]
name = re.sub(r"\s*(Hours)?\s*-?\s*(CLOSED|OPEN)?$", "", data[0], re.I).strip().title()
name = re.sub(r"\s*(Hours)?\s*-?\s*(CLOSED|OPEN)?$", "", data[0], re.I).strip()
output.append({
"name": name,
"open": "Open" in data[1],
Expand Down

0 comments on commit 72bd6c4

Please sign in to comment.