derek-thomas HF staff commited on
Commit
ffea6b6
1 Parent(s): 9de4dba

Minor fix for date_to_fetch

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -80,7 +80,7 @@ def main(date_to_fetch):
80
  submissions = scrape_submissions_by_day(subreddit, str(date_to_fetch))
81
  df = submissions_to_dataframe(submissions)
82
  logger.info(f"Data fetched for {str(date_to_fetch)}")
83
- most_recent_date = start_date
84
 
85
  # Append DataFrame to split 'all_days' or create new split
86
  if "all_days" in dataset:
 
80
  submissions = scrape_submissions_by_day(subreddit, str(date_to_fetch))
81
  df = submissions_to_dataframe(submissions)
82
  logger.info(f"Data fetched for {str(date_to_fetch)}")
83
+ most_recent_date = date_to_fetch
84
 
85
  # Append DataFrame to split 'all_days' or create new split
86
  if "all_days" in dataset: