Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dj_gui_api_server/DJConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ def get_table_definition(jwt_payload, schema_name, table_name):
table_name (string): Table name under the given schema, must be in camel case
tuple (dict): tuple to be inserted

Return:
bool: true if input is sucessful
Returns:
None
"""
@staticmethod
def insert_tuple(jwt_payload, schema_name, table_name, tuple_to_insert):
DJConnector.set_datajoint_config(jwt_payload)

schema_virtual_module = dj.create_virtual_module(schema_name, schema_name)
return getattr(schema_virtual_module, table_name).insert1(tuple_to_insert)
getattr(schema_virtual_module, table_name).insert1(tuple_to_insert)

"""
Method to set credentials for database
Expand Down