mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04:00
How tf did that happen
This commit is contained in:
parent
259e3b06bb
commit
a95b2420b2
@ -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'))
|
op = op.order_by(sql.desc('timestamp'))
|
||||||
else:
|
else:
|
||||||
op = op.order_by(sql.asc('timestamp'))
|
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!
|
# if we count associated we cant limit here because we remove stuff later!
|
||||||
op = op.limit(limit)
|
op = op.limit(limit)
|
||||||
result = dbconn.execute(op).all()
|
result = dbconn.execute(op).all()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user