Ensure all rows in playlist are updated.

This commit is contained in:
Keith Edmunds 2021-04-11 15:13:39 +01:00
parent 958c3a8086
commit b049f3207d
3 changed files with 5 additions and 9 deletions

View File

@ -29,9 +29,9 @@ class Config(object):
MAIL_USERNAME = os.environ.get('MAIL_USERNAME') MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS') is not None MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS') is not None
MILLISECOND_SIGFIGS = 0 MILLISECOND_SIGFIGS = 0
MYSQL_CONNECT = "mysql+mysqldb://songdb:songdb@localhost/songdb" MYSQL_CONNECT = "mysql+mysqldb://songdb:songdb@localhost/musicmuster"
ROOT = "/home/kae/music" ROOT = "/home/kae/music"
TESTMODE = False TESTMODE = True
TIMER_MS = 500 TIMER_MS = 500

View File

@ -185,7 +185,8 @@ class Window(QMainWindow, Ui_MainWindow):
def test_function(self): def test_function(self):
"Placeholder for test function" "Placeholder for test function"
pass import ipdb
ipdb.set_trace()
def test_skip_to_end(self): def test_skip_to_end(self):
"Skip current track to 1 second before silence" "Skip current track to 1 second before silence"

View File

@ -600,14 +600,9 @@ class Playlist(QTableWidget):
next = self.meta_get_next() next = self.meta_get_next()
notes = self.meta_get_notes() notes = self.meta_get_notes()
if current:
start_row = current
else:
start_row = 0
# Set colours and start times # Set colours and start times
running_end_time = None running_end_time = None
for row in range(start_row, self.rowCount()): for row in range(self.rowCount()):
if row == current: if row == current:
# Set end time # Set end time