Skip to content

Commit f6be4c0

Browse files
refactor: Remove print statement from main_sync function
1 parent 1f08027 commit f6be4c0

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

examples/trip.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
import onebusaway
4+
5+
6+
def main_sync() -> None:
7+
client = onebusaway.OnebusawaySDK(api_key="TEST")
8+
9+
trip_id = '40_608344966'
10+
trip = client.trip.retrieve(trip_id)
11+
12+
if trip.data and trip.data.entry:
13+
print(trip.data.entry)
14+
else:
15+
print("trip data or entry is None.")
16+
17+
if __name__ == "__main__":
18+
main_sync()

0 commit comments

Comments
 (0)