Skip to content

Commit

Permalink
delete unneccessary data
Browse files Browse the repository at this point in the history
  • Loading branch information
mhorst00 committed Nov 17, 2022
1 parent 97e7c38 commit 98b3cd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mining/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def get_all_trips_from_station(start: str, stations: list[str], time: datetime):
for i in trips:
if isinstance(i, vvspy.obj.Trip):
trip = i.raw
del trip["fare"]
del trip["isAdditional"]
del trip["daysOfService"]
for leg in range(len(trip["legs"])):
del trip["legs"][leg]["coords"]
results.append(trip)
else:
discord_logging.info(
Expand Down

0 comments on commit 98b3cd6

Please sign in to comment.