From 1b0cc54581feca43dfad983d9d275c3da5d41cbe Mon Sep 17 00:00:00 2001 From: spl0k Date: Sat, 4 Aug 2018 12:24:29 +0200 Subject: [PATCH] Workaround new pony QueryResult behaviour Ref ponyorm/pony#369 --- supysonic/api/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supysonic/api/search.py b/supysonic/api/search.py index 3ade661..758e7d1 100644 --- a/supysonic/api/search.py +++ b/supysonic/api/search.py @@ -41,7 +41,7 @@ def old_search(): if offset + count > fcount: toff = max(0, offset - fcount) tend = offset + count - fcount - res += tracks[toff : tend] + res = res[:] + tracks[toff : tend][:] return request.formatter('searchResult', dict( totalHits = folders.count() + tracks.count(),