mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
remove : check from dbproxy
This commit is contained in:
parent
b1a8107aa1
commit
5c5d1c2af5
1 changed files with 0 additions and 2 deletions
|
@ -48,7 +48,6 @@ class DBProxy:
|
||||||
for stmt in "insert", "update", "delete":
|
for stmt in "insert", "update", "delete":
|
||||||
if s.startswith(stmt):
|
if s.startswith(stmt):
|
||||||
self.mod = True
|
self.mod = True
|
||||||
assert ":" not in sql
|
|
||||||
# fetch rows
|
# fetch rows
|
||||||
return self._backend.db_query(sql, args, first_row_only)
|
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:
|
def executemany(self, sql: str, args: Iterable[Sequence[ValueForDB]]) -> None:
|
||||||
self.mod = True
|
self.mod = True
|
||||||
assert ":" not in sql
|
|
||||||
if isinstance(args, list):
|
if isinstance(args, list):
|
||||||
list_args = args
|
list_args = args
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue