Skip to content

Commit

Permalink
Patch 12 pm issue
Browse files Browse the repository at this point in the history
12 pm -> 24:00 -> 86400 seconds
  • Loading branch information
kashav committed Apr 28, 2016
1 parent 74e5d12 commit 845be1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uoftscrapers/scrapers/food/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def conv_time(t):
else:
h = int(time)

h += 12 if period == 'p.m.' else 0
h += 12 if period == 'p.m.' and h != 12 else 0
return (60 * 60 * h) + (60 * m)

headers = {
Expand Down

0 comments on commit 845be1b

Please sign in to comment.