Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change list table to use virutal module instaed of schema #63

Merged
merged 11 commits into from
Mar 5, 2021
4 changes: 2 additions & 2 deletions dj_gui_api_server/DJConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def list_tables(jwt_payload: dict, schema_name: str):
DJConnector.set_datajoint_config(jwt_payload)

# Get list of tables names\
tables_name = dj.schema(schema_name).list_tables()
tables_name = dj.VirtualModule(schema_name, schema_name).schema.list_tables()

# Dict to store list of table name for each type
tables_dict_list = dict(manual_tables=[], lookup_tables=[], computed_tables=[],
Expand Down Expand Up @@ -115,7 +115,7 @@ def fetch_tuples(jwt_payload: dict, schema_name: str, table_name: str,
:type schema_name: str
:param table_name: Table name under the given schema; must be in camel case
:type table_name: str
:param restriction: Sequence of filter cards with attribute_name, operation, value
:param restriction: Sequence of filter cards with attributeName, operation, value
defined, defaults to []
:type restriction: list, optional
:param limit: Max number of records to return, defaults to 1000
Expand Down