Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
filau committed Jul 12, 2021
1 parent df1f958 commit e9159ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion divia_api/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def totem(self) -> list:
else:
result.append(time_1_today)
if two:
time_2 = html_totem.split("<span class=\"uk-badge\"> ")[2].split("</span>")[0]
time_2 = html_totem.split("<span class=\"uk-badge\"> ")[2].split("</span>")[0].split(":")
time_2_today = datetime(now.year, now.month, now.day, int(time_2[0]), int(time_2[1]), 0)
if (now - two_minutes) > time_2_today:
result.append(time_2_today + one_day)
Expand Down

0 comments on commit e9159ba

Please sign in to comment.