Skip to content

Commit

Permalink
v2.5.0
Browse files Browse the repository at this point in the history
- Added to_sqlite flag argument
- Added logic to prevent scraping the day that already passed for scrape_until_month_end.py and thread_scrape.py
- Added utils.py
  • Loading branch information
sakan811 committed Jun 1, 2024
1 parent c7dd236 commit 773cf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion japan_avg_hotel_price_finder/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def check_if_current_date_has_passed(year, month, day):
today_for_check = datetime.today().strftime('%Y-%m-%d')
current_date_for_check = datetime(year, month, day).strftime('%Y-%m-%d')
if current_date_for_check < today_for_check:
logger.warning(f'The current day of the month to scrape was passed. Skip this day.')
logger.warning(f'The current day of the month to scrape was passed. Skip {year}-{month}-{day}.')
return True
else:
return False

0 comments on commit 773cf42

Please sign in to comment.