Skip to content

Commit b69f2ca

Browse files
committed
fix: hide albums without name from the recently added albums list
1 parent 0cc279a commit b69f2ca

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

beetsstatistics.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ def get_albums_not_in_mb(self):
407407
raise DBQueryError from e
408408

409409
def get_recently_added_albums(self):
410+
"""
411+
Query and return the newest album added to the database.
412+
"""
410413
try:
411414
cursor = self.get_db_connection().cursor()
412415
query = """select
@@ -422,7 +425,8 @@ def get_recently_added_albums(self):
422425
items i on
423426
i.album_id = a.id
424427
where
425-
album_id is not null
428+
a.album_id is not null and
429+
a.album != ''
426430
group by
427431
i.album_id
428432
order by a.added desc

0 commit comments

Comments
 (0)