minor stuff
This commit is contained in:
2
noten.py
2
noten.py
@@ -13,7 +13,7 @@ data.sort_values(by='note', inplace=True)
|
||||
acc_note = 0.0
|
||||
acc_lp = 0
|
||||
# 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:
|
||||
acc_lp = acc_lp + row['lp']
|
||||
acc_note = acc_note + row['lp'] * row['note']
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"SAVE_CREDENTIALS": "True",
|
||||
"CREDENTIALS_LOCATION": "credentials.json",
|
||||
"OUTPUT": "playlists/{playlist}/{artist} - {song_name}.{ext}",
|
||||
"SONG_ARCHIVE": "archive.txt",
|
||||
"OUTPUT": "downloaded/{artist}/{album}/{song_name} - {artist}.{ext}",
|
||||
"SONG_ARCHIVE": "successful_archive.txt",
|
||||
"ROOT_PATH": ".",
|
||||
"ROOT_PODCAST_PATH": "",
|
||||
"SPLIT_ALBUM_DISCS": "False",
|
||||
@@ -23,7 +23,7 @@
|
||||
"LANGUAGE": "en",
|
||||
"PRINT_SPLASH": "False",
|
||||
"PRINT_SKIPS": "True",
|
||||
"PRINT_DOWNLOAD_PROGRESS": "True",
|
||||
"PRINT_DOWNLOAD_PROGRESS": "False",
|
||||
"PRINT_ERRORS": "True",
|
||||
"PRINT_DOWNLOADS": "False",
|
||||
"PRINT_API_ERRORS": "True",
|
||||
|
||||
Reference in New Issue
Block a user