feat: Update import script to include future shows
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
This commit is contained in:
parent
c9a22de2a9
commit
f73d1aaca1
1 changed files with 5 additions and 2 deletions
|
|
@ -92,8 +92,11 @@ def import_shows_and_setlists():
|
||||||
tours_added = 0
|
tours_added = 0
|
||||||
songs_added = 0
|
songs_added = 0
|
||||||
|
|
||||||
# Process past shows with setlists
|
# Process ALL shows (past and future)
|
||||||
for api_show in past_shows:
|
all_shows_to_process = past_shows + future_shows
|
||||||
|
print(f"Processing {len(all_shows_to_process)} shows...")
|
||||||
|
|
||||||
|
for api_show in all_shows_to_process:
|
||||||
show_date_str = api_show.get("showdate")
|
show_date_str = api_show.get("showdate")
|
||||||
show_date = datetime.strptime(show_date_str, "%Y-%m-%d")
|
show_date = datetime.strptime(show_date_str, "%Y-%m-%d")
|
||||||
api_show_id = api_show.get("show_id")
|
api_show_id = api_show.get("show_id")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue