Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion beetsstatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ def get_albums_not_in_mb(self):
raise DBQueryError from e

def get_recently_added_albums(self):
"""
Query and return the newest album added to the database.
"""
try:
cursor = self.get_db_connection().cursor()
query = """select
Expand All @@ -422,7 +425,8 @@ def get_recently_added_albums(self):
items i on
i.album_id = a.id
where
album_id is not null
a.album_id is not null and
a.album != ''
group by
i.album_id
order by a.added desc
Expand Down