Prefer real scrobbles in case of artist chart tie

This commit is contained in:
krateng 2023-12-28 03:47:07 +01:00
parent 436b40821a
commit 1f1a65840c

View File

@ -1075,7 +1075,7 @@ def count_scrobbles_by_artist(since,to,associated=True,resolve_ids=True,dbconn=N
DB['scrobbles'].c.timestamp.between(since,to)
).group_by(
artistselect
).order_by(sql.desc('count'))
).order_by(sql.desc('count'),sql.desc('really_by_this_artist'))
result = dbconn.execute(op).all()
if resolve_ids: