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
5 changes: 2 additions & 3 deletions dj_gui_api_server/DJConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def list_schemas(jwt_payload):

# Attempt to connect return true if successful, false is failed
schemas = dj.list_schemas()
dj.conn.connection.close()
return schemas

"""
Expand Down Expand Up @@ -82,8 +81,7 @@ def list_tables(jwt_payload, schema_name):
tables_dict_list['part_tables'].append(DJConnector.snake_to_camel_case(table_name_parts[1]) + '.' + DJConnector.snake_to_camel_case(table_name_parts[2]))
else:
print(table_name + ' is of unknown table type')

dj.conn.connection.close()

return tables_dict_list

"""
Expand All @@ -101,6 +99,7 @@ def set_datajoint_config(jwt_payload):
dj.config['database.user'] = jwt_payload['username']
dj.config['database.password'] = jwt_payload['password']

dj.conn(reset=True)
"""
Helper method for converting snake to camel case

Expand Down