From 5c5d1c2af5f0b1544fb14b6818e2acc5712e7bf2 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 24 Mar 2020 10:37:12 +1000 Subject: [PATCH] remove : check from dbproxy --- pylib/anki/dbproxy.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pylib/anki/dbproxy.py b/pylib/anki/dbproxy.py index a6ea0fec0..6ce136160 100644 --- a/pylib/anki/dbproxy.py +++ b/pylib/anki/dbproxy.py @@ -48,7 +48,6 @@ class DBProxy: for stmt in "insert", "update", "delete": if s.startswith(stmt): self.mod = True - assert ":" not in sql # fetch rows return self._backend.db_query(sql, args, first_row_only) @@ -84,7 +83,6 @@ class DBProxy: def executemany(self, sql: str, args: Iterable[Sequence[ValueForDB]]) -> None: self.mod = True - assert ":" not in sql if isinstance(args, list): list_args = args else: