From 5a377605c3afcc0143162a93733eade110741a40 Mon Sep 17 00:00:00 2001 From: BryanFauble <17128019+BryanFauble@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:29:34 -0700 Subject: [PATCH] Correct example --- synapseclient/models/protocols/table_protocol.py | 2 +- synapseclient/models/table.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/synapseclient/models/protocols/table_protocol.py b/synapseclient/models/protocols/table_protocol.py index cf4c34515..c80f933af 100644 --- a/synapseclient/models/protocols/table_protocol.py +++ b/synapseclient/models/protocols/table_protocol.py @@ -141,7 +141,7 @@ def delete_rows( syn = Synapse() syn.login() - Table.delete_rows(query="SELECT ROW_ID, ROW_VERSION FROM syn1234 WHERE foo = 'asdf'") + Table(id="syn1234").delete_rows(query="SELECT ROW_ID, ROW_VERSION FROM syn1234 WHERE foo = 'asdf'") """ return pd.DataFrame() diff --git a/synapseclient/models/table.py b/synapseclient/models/table.py index db6f8b931..470ed4fef 100644 --- a/synapseclient/models/table.py +++ b/synapseclient/models/table.py @@ -971,7 +971,7 @@ async def delete_rows_async( syn.login() async def main(): - await Table.delete_rows_async(query="SELECT ROW_ID, ROW_VERSION FROM syn1234 WHERE foo = 'asdf'") + await Table(id="syn1234").delete_rows_async(query="SELECT ROW_ID, ROW_VERSION FROM syn1234 WHERE foo = 'asdf'") asyncio.run(main()) """