From cbfe37a4acf0de9692b0393ed485aa70ec5debf8 Mon Sep 17 00:00:00 2001 From: cwilvx Date: Tue, 31 Dec 2024 13:43:13 +0300 Subject: [PATCH] fix: show albums with a single track as singles --- app/models/album.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/album.py b/app/models/album.py index afe4f80b..34ecbac7 100644 --- a/app/models/album.py +++ b/app/models/album.py @@ -173,7 +173,7 @@ class Album: # REVIEW: Reading from the config file in a for loop will be slow # TODO: Find a - if singleTrackAsSingle and len(tracks) == 1: + if singleTrackAsSingle and self.trackcount == 1: return True if (