From a7cdeb0b2d43e0e0007a95e94359571a8b83a2ea Mon Sep 17 00:00:00 2001 From: spl0k Date: Sun, 20 May 2018 13:14:28 +0200 Subject: [PATCH] Don't bulk delete folders Fixes issue with MariaDB<10.3.1 Ref #99 --- supysonic/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supysonic/db.py b/supysonic/db.py index a716069..6b3c56f 100644 --- a/supysonic/db.py +++ b/supysonic/db.py @@ -107,7 +107,7 @@ class Folder(PathMixin, db.Entity): not exists(f for f in Folder if f.parent == self) and not self.root) total = 0 while True: - count = query.delete(bulk = True) + count = query.delete() # Non-bulk, MariaDB<10.3.1 doesn't like it total += count if not count: return total