Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-milea committed Jan 8, 2024
1 parent d64d3f5 commit 879ee22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/syft/src/syft/store/sqlite_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _set(self, key: UID, value: Any) -> None:
self._update(key, value)
else:
insert_sql = (
f"insert into {self.table_name} (uid, repr, value) VALUES (?, ?, ?)" # nosec
f"insert into {self.table_name} (uid, repr, value) VALUES (?, ?, ?)" # nosec
)
data = _serialize(value, to_bytes=True)
res = self._execute(insert_sql, [str(key), _repr_debug_(value), data])
Expand All @@ -215,7 +215,7 @@ def _set(self, key: UID, value: Any) -> None:

def _update(self, key: UID, value: Any) -> None:
insert_sql = (
f"update {self.table_name} set uid = ?, repr = ?, value = ? where uid = ?" # nosec
f"update {self.table_name} set uid = ?, repr = ?, value = ? where uid = ?" # nosec
)
data = _serialize(value, to_bytes=True)
res = self._execute(insert_sql, [str(key), _repr_debug_(value), data, str(key)])
Expand Down

0 comments on commit 879ee22

Please sign in to comment.