Change remaining PlaylistRows.row_number to row_no
This commit is contained in:
parent
034993b737
commit
f3c86484fe
@ -997,8 +997,8 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
self.next_track.plr_id]
|
||||
]
|
||||
|
||||
rows_to_delete = [plr.row_number for plr in plrs_to_move
|
||||
if plr.row_number is not None]
|
||||
rows_to_delete = [plr.row_no for plr in plrs_to_move
|
||||
if plr.row_no is not None]
|
||||
if not rows_to_delete:
|
||||
return
|
||||
|
||||
@ -1028,7 +1028,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
next_row = 0
|
||||
|
||||
for plr in plrs_to_move:
|
||||
plr.row_number = next_row
|
||||
plr.row_no = next_row
|
||||
next_row += 1
|
||||
plr.playlist_id = destination_playlist_id
|
||||
# Reset played as it's not been played on this playlist
|
||||
@ -1150,7 +1150,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
if not src_playlist_id:
|
||||
src_playlist_id = plr.playlist_id
|
||||
plr.playlist_id = dst_playlist_id
|
||||
plr.row_number = row
|
||||
plr.row_no = row
|
||||
row += 1
|
||||
|
||||
if not src_playlist_id:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user