-
Notifications
You must be signed in to change notification settings - Fork 34
Update routes for specific dates #638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Brian-Lee
wants to merge
56
commits into
master
Choose a base branch
from
brians-branch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
614bfe3
renamed save_routes method to save_new_routes
Brian-Lee 857fe04
fixed naming error with routeconfig.new_save_routes
Brian-Lee c87b43e
added save_old_routes method
Brian-Lee 3817c06
called save_old_routes after calling save_new_routes - doesnt save pr…
Brian-Lee 22cb4c3
some progress making a versioned cache dir for old route
Brian-Lee e56fa1e
eliminated unecessary use_versioning variable
Brian-Lee 28b1931
consolidated save_old_routes and save_new_routes into save_routes
Brian-Lee cb55856
framework for executing a scrape saving routes normally followed by a…
Brian-Lee 33a8e53
removed 'notdated' from non-archived routes JSON files
Brian-Lee 690e0cc
removed unused method download_gtfs_data and 'dated' from filenames
Brian-Lee 0c9fba6
put in a more realistic date for the archive date version for the sin…
Brian-Lee 26f1772
moved imports to the top
Brian-Lee 9998299
added reminder comment to properly get archived GTFS data
Brian-Lee ee2ebe5
can add multiple archive urls to archive routes
Brian-Lee 50812c4
pulling archive urls from a list
Brian-Lee 5f7112f
make url from date and loop through archiving urls for archiving routes
Brian-Lee 652a459
use transitfeeds api to get old routes to version by date and cache -…
Brian-Lee 36565da
eliminate unecessary param archiving_old and other cleanup
Brian-Lee 7ac1b10
some cleanup
Brian-Lee 6ebe655
passed archiving_date instead of current date per reviewer suggestion
Brian-Lee ff9500b
remove unecessary archive_date
Brian-Lee e618a1f
framework to take archiving_date argument
Brian-Lee aa0b423
added some comments
Brian-Lee d4f13f8
changed archived_date to gtfs_date
Brian-Lee 6e0c3b3
combined GtfsScraper calls for both cases
Brian-Lee 24f56e9
eliminated variable d
Brian-Lee bb7dbf4
added backwards date search if gtfs_date doesnt match exact zipfile date
Brian-Lee 4d568e4
date suffix now matches actual date found and used
Brian-Lee d5a7cbc
removed duplicative checking for dated gtfs zipfile
Brian-Lee 0bf3cf2
pass gtfs_path to scraper instead of gtfs_date
Brian-Lee e496466
some cleanup
Brian-Lee 93b90b7
fixed bug where save_routes.py broken without gtsf_date argument
Brian-Lee af19055
added a comment
Brian-Lee 483a0b2
combined duplicative lines
Brian-Lee 2084742
changed command line argument gtfs_date to date
Brian-Lee 385e209
changed the method of finding most recent gtfs zip
Brian-Lee 8711770
Merge branch 'master' of https://github.com/trynmaps/metrics-mvp into…
Brian-Lee f35f14a
combined two identical lines into one
Brian-Lee e219b42
reduced if-else to just if
Brian-Lee 198a3ae
eliminated unecessary else keyword
Brian-Lee 8fcbb5b
removed outdated comments
Brian-Lee 46c9927
removed unecessary assignment of save_to_s3
Brian-Lee d4f8b72
changed
Brian-Lee 2a4c807
setting starting date more appropriately to date argument
Brian-Lee a5f5a62
chained two lines into one
Brian-Lee 4d24dfe
eliminated unecessary import shutil
Brian-Lee fdba9b7
changed all occurrences of version_date to gtfs_date
Brian-Lee d2be8d4
changed one missed version_date to gtfs_date and removed unecessary i…
Brian-Lee 78e5386
removed unecessary imports
Brian-Lee ed4c4d7
improved the comment
Brian-Lee 3b30c68
removed unecessary parameter from save_routes method
Brian-Lee 7b81c1a
simplified vars - removed date_to_use
Brian-Lee 8a7443c
added error msg for dated gtfs file not found and moved code into new…
Brian-Lee de0b556
corrected inconsistency -YYYY-MM-DD vs _YYYY-MM-DD in routes path
Brian-Lee 5639610
fixed introduced bug resetting gtfs_path and gtfs_date outside of ELSE
Brian-Lee db1bacc
conditionally load gtfs data from the cache-dir or gtfs_path
Brian-Lee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.