Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Commit 188dad6

Browse files
committed
update get_departures method in Station class to accept time offset
1 parent d395737 commit 188dad6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mvg_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ def __init__(self, station):
387387
self.latitude = matching_stations[0]["latitude"]
388388
self.longitude = matching_stations[0]["longitude"]
389389

390-
def get_departures(self):
391-
return get_departures(self.id)
390+
def get_departures(self, timeoffset=0):
391+
return get_departures(self.id, timeoffset)
392392

393393
def __repr__(self):
394394
return "Station(id=%s, name='%s')" % (self.id, self.name)

0 commit comments

Comments
 (0)