Skip to content

Commit

Permalink
Update data to Feb 2024 (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Mar 28, 2024
1 parent 0fc7dbf commit 27df400
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/constants/dates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const THREE_MONTHS_AGO_STRING = TODAY.subtract(90, 'days').format(DATE_FO
const OVERVIEW_TRAIN_MIN_DATE = '2016-02-01';
const TRAIN_MIN_DATE = '2016-01-15';
const BUS_MIN_DATE = '2018-08-01';
export const BUS_MAX_DATE = '2024-01-31';
export const BUS_MAX_DATE = '2024-02-29';
export const BUS_MAX_DAY = dayjs(BUS_MAX_DATE);
export const BUS_MAX_DATE_MINUS_ONE_WEEK = dayjs(BUS_MAX_DATE)
.subtract(7, 'days')
Expand Down
2 changes: 1 addition & 1 deletion server/bus/setup_bus_input.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ wget -N -O data/input/gtfs.zip https://cdn.mbta.com/MBTA_GTFS.zip
unzip -o -d data/input/MBTA_GTFS/ data/input/gtfs.zip

cd data/input
for i in `seq 2023 2024`; do
for i in `seq 2018 2024`; do
unzip -o -d $i $i.zip
done

Expand Down
2 changes: 1 addition & 1 deletion server/chalicelib/date_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
EASTERN_TIME = ZoneInfo("US/Eastern")

# The most recent date for which we have monthly data
MAX_MONTH_DATA_DATE = "2024-01-31"
MAX_MONTH_DATA_DATE = "2024-02-29"


def parse_event_date(date_str: str):
Expand Down

0 comments on commit 27df400

Please sign in to comment.