clean up
This commit is contained in:
@@ -68,13 +68,11 @@ def get_spotify_id(url):
|
|||||||
@router.post("/load_list")
|
@router.post("/load_list")
|
||||||
async def create_upload_file(include_non_singable: bool = False, db: Session = Depends(get_db)):
|
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.drop_all(engine)
|
||||||
Base.metadata.create_all(engine)
|
Base.metadata.create_all(engine)
|
||||||
|
|
||||||
song_list = pd.read_excel(os.environ['LIST_URL'])
|
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({np.nan: None})
|
||||||
song_list = song_list.replace({"n/a": None})
|
song_list = song_list.replace({"n/a": None})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user