Skip to content

Commit

Permalink
Fixed weekday alignment issues (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnie4k authored Jan 7, 2024
1 parent ddbb160 commit bbc86a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM python:3.9
ENV TZ="America/New_York"
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . .
Expand Down
10 changes: 5 additions & 5 deletions src/scrapers/reg_hours_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def fetch_reg_building():
date = datetime.now() + timedelta(days=i)

# Get spreadsheet info
weekday = DAYS_OF_WEEK[i]
weekday = DAYS_OF_WEEK[date.weekday()]
names = vals["Name"]

# Add to database
Expand Down Expand Up @@ -86,7 +86,7 @@ def fetch_reg_bowling(vals):
date = datetime.now() + timedelta(days=i)

# Get spreadsheet info
weekday = DAYS_OF_WEEK[i]
weekday = DAYS_OF_WEEK[date.weekday()]
names = vals["Name"]

# Add to database
Expand Down Expand Up @@ -121,7 +121,7 @@ def fetch_reg_court(vals):
date = datetime.now() + timedelta(days=i)

# Get spreadsheet info
weekday = DAYS_OF_WEEK[i]
weekday = DAYS_OF_WEEK[date.weekday()]
names = vals["Name"]

# Add to database
Expand Down Expand Up @@ -156,7 +156,7 @@ def fetch_reg_pool(vals):
date = datetime.now() + timedelta(days=i)

# Get spreadsheet info
weekday = DAYS_OF_WEEK[i]
weekday = DAYS_OF_WEEK[date.weekday()]
names = vals["Name"]

# Add to database
Expand Down Expand Up @@ -196,7 +196,7 @@ def fetch_reg_fc(vals):
date = datetime.now() + timedelta(days=i)

# Get spreadsheet info
weekday = DAYS_OF_WEEK[i]
weekday = DAYS_OF_WEEK[date.weekday()]
names = vals["Name"]

# Add to database
Expand Down

0 comments on commit bbc86a7

Please sign in to comment.