Skip to content

Commit

Permalink
remove closed from fitness name
Browse files Browse the repository at this point in the history
  • Loading branch information
ezwang committed Aug 5, 2018
1 parent c4c603a commit 874a0c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion penn/fitness.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import requests
import datetime
import pytz
Expand Down Expand Up @@ -53,7 +54,7 @@ def get_usage(self):
data = [x.strip() for x in item.get_text("\n").strip().split("\n")]
data = [x for x in data if x]
output.append({
"name": data[0],
"name": re.sub(r"\s*-\s*CLOSED$", "", data[0], re.I),
"open": "Open" in data[1],
"count": int(data[2].rsplit(" ", 1)[-1]),
"updated": eastern.localize(datetime.datetime.strptime(data[3][8:].strip(), '%m/%d/%Y %I:%M %p')).isoformat(),
Expand Down

0 comments on commit 874a0c4

Please sign in to comment.