Fix conditions using None (see #103)

This commit is contained in:
coderkun 2024-11-23 16:35:44 +01:00
parent ccf68deff7
commit 84103229f1

View file

@ -1029,7 +1029,7 @@ class MCGAlbum:
@staticmethod
def compare(album1, album2, criterion=None, reverse=False):
if criterion == None:
if criterion is None:
criterion = SortOrder.TITLE
if criterion == SortOrder.ARTIST:
value_function = "get_artists"