fix initial run

This commit is contained in:
matthias@matsewe.de
2024-06-06 16:31:21 +02:00
parent 796ccc2955
commit 107b79a109
2 changed files with 5 additions and 1 deletions

View File

@@ -68,10 +68,13 @@ def get_spotify_id(url):
@router.post("/load_list")
async def create_upload_file(include_non_singable: bool = False, db: Session = Depends(get_db)):
print("load list")
Base.metadata.drop_all(engine)
Base.metadata.create_all(engine)
song_list = pd.read_excel(os.environ['LIST_URL'])
print(song_list)
song_list = song_list.replace({np.nan: None})
song_list = song_list.replace({"n/a": None})