From b83bd0d5c3fd4a4cae4289a6ecff9e29b1c753d3 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Wed, 15 Nov 2023 15:09:41 +0000 Subject: [PATCH] WIP V3: display last played date --- app/playlistmodel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/playlistmodel.py b/app/playlistmodel.py index 1362b19..1f5575e 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -21,6 +21,7 @@ from dbconfig import scoped_session, Session from helpers import ( file_is_unreadable, get_embedded_time, + get_relative_date, open_in_audacity, ms_to_mmss, set_track_metadata, @@ -378,7 +379,7 @@ class PlaylistModel(QAbstractTableModel): else: return QVariant() if column == Col.LAST_PLAYED.value: - return QVariant(prd.lastplayed) + return QVariant(get_relative_date(prd.lastplayed)) if column == Col.BITRATE.value: return QVariant(prd.bitrate) if column == Col.NOTE.value: