From 874ee80a68866f9f3ef9257bf44487c1592f5c67 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 3 Mar 2020 18:29:36 +1000 Subject: [PATCH] add a temporary executemany() --- pylib/anki/dbproxy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylib/anki/dbproxy.py b/pylib/anki/dbproxy.py index ff89f2390..d18c0cce2 100644 --- a/pylib/anki/dbproxy.py +++ b/pylib/anki/dbproxy.py @@ -94,7 +94,9 @@ class DBProxy: def executemany(self, sql: str, args: Iterable[Iterable[ValueForDB]]) -> None: self.mod = True - raise Exception("fixme") + # fixme + for row in args: + self.execute(sql, *row) def executescript(self, sql: str) -> None: self.mod = True