seatable / seatable-api-python

SeaTable Python API provide list/add/update/delete records in tables.
https://seatable.github.io/seatable-scripts/
Apache License 2.0
16 stars 8 forks source link

table names 4 characters long are erroneously parsed as table ids #76

Open jefferis opened 1 year ago

jefferis commented 1 year ago

2.6.3 has introduced a bug that causes table names that match the regular expression r'^[-0-9a-zA-Z]{4}$' in the new like_table_id() function to be parsed as ids rather than tables, which in turns leads to list_rows giving errors about not finding the requested table.

cc @schlegelp who may be able to give a full example.

freeplant commented 1 year ago

You may re-test it with version 3.4 server after it is released. In version 3.4, the server will use the parameter both as table_id and table_name to find a table.

schlegelp commented 1 year ago

I see. Would you be open to a PR that changes the behaviour to only use like_table_id if the server is version 3.4.0 or higher?