How tf did that happen

This commit is contained in:
krateng 2024-01-07 06:51:07 +01:00
parent 259e3b06bb
commit a95b2420b2

View File

@ -863,7 +863,7 @@ def get_scrobbles_of_artist(artist,since=None,to=None,resolve_references=True,li
op = op.order_by(sql.desc('timestamp'))
else:
op = op.order_by(sql.asc('timestamp'))
if limit and associated:
if limit and not associated:
# if we count associated we cant limit here because we remove stuff later!
op = op.limit(limit)
result = dbconn.execute(op).all()