Skip to content

Commit

Permalink
Ensure "last_confirmed_on_roster" is greater than or equal to "added"…
Browse files Browse the repository at this point in the history
… and not blank
  • Loading branch information
peteb206 authored Dec 3, 2024
1 parent 90bc82a commit 272705a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def players():
compare_df = existing_school_canadians_df.merge(school_canadians_df, how = 'outer', indicator = 'source')
rows_to_add_df = compare_df[compare_df['source'] == 'right_only'][cols]
rows_to_add_df['added'] = today_str
rows_to_add_df['last_confirmed_on_roster'] = today_str
if len(rows_to_add_df.index):
cbn_utils.pause(players_worksheet.append_rows(rows_to_add_df.values.tolist()))
confirmed_rows_indices = compare_df[compare_df['source'] == 'both']['row'].to_list()
Expand Down

0 comments on commit 272705a

Please sign in to comment.