minor stuff

This commit is contained in:
eneller
2024-08-14 01:02:41 +02:00
parent 3be8adb748
commit cbbe50878c
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ data.sort_values(by='note', inplace=True)
acc_note = 0.0 acc_note = 0.0
acc_lp = 0 acc_lp = 0
# the use of iterrows and all iteration over dataframes is discouraged for performance reasons # the use of iterrows and all iteration over dataframes is discouraged for performance reasons
for index, row in data.iterrows(): for _ , row in data.iterrows():
if acc_lp + row['lp'] < target_lp: if acc_lp + row['lp'] < target_lp:
acc_lp = acc_lp + row['lp'] acc_lp = acc_lp + row['lp']
acc_note = acc_note + row['lp'] * row['note'] acc_note = acc_note + row['lp'] * row['note']

View File

@@ -1,8 +1,8 @@
{ {
"SAVE_CREDENTIALS": "True", "SAVE_CREDENTIALS": "True",
"CREDENTIALS_LOCATION": "credentials.json", "CREDENTIALS_LOCATION": "credentials.json",
"OUTPUT": "playlists/{playlist}/{artist} - {song_name}.{ext}", "OUTPUT": "downloaded/{artist}/{album}/{song_name} - {artist}.{ext}",
"SONG_ARCHIVE": "archive.txt", "SONG_ARCHIVE": "successful_archive.txt",
"ROOT_PATH": ".", "ROOT_PATH": ".",
"ROOT_PODCAST_PATH": "", "ROOT_PODCAST_PATH": "",
"SPLIT_ALBUM_DISCS": "False", "SPLIT_ALBUM_DISCS": "False",
@@ -23,7 +23,7 @@
"LANGUAGE": "en", "LANGUAGE": "en",
"PRINT_SPLASH": "False", "PRINT_SPLASH": "False",
"PRINT_SKIPS": "True", "PRINT_SKIPS": "True",
"PRINT_DOWNLOAD_PROGRESS": "True", "PRINT_DOWNLOAD_PROGRESS": "False",
"PRINT_ERRORS": "True", "PRINT_ERRORS": "True",
"PRINT_DOWNLOADS": "False", "PRINT_DOWNLOADS": "False",
"PRINT_API_ERRORS": "True", "PRINT_API_ERRORS": "True",