File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ def list_schemas(jwt_payload):
4141
4242 # Attempt to connect return true if successful, false is failed
4343 schemas = dj .list_schemas ()
44- dj .conn .connection .close ()
4544 return schemas
4645
4746 """
@@ -82,8 +81,7 @@ def list_tables(jwt_payload, schema_name):
8281 tables_dict_list ['part_tables' ].append (DJConnector .snake_to_camel_case (table_name_parts [1 ]) + '.' + DJConnector .snake_to_camel_case (table_name_parts [2 ]))
8382 else :
8483 print (table_name + ' is of unknown table type' )
85-
86- dj .conn .connection .close ()
84+
8785 return tables_dict_list
8886
8987 """
@@ -101,6 +99,7 @@ def set_datajoint_config(jwt_payload):
10199 dj .config ['database.user' ] = jwt_payload ['username' ]
102100 dj .config ['database.password' ] = jwt_payload ['password' ]
103101
102+ dj .conn (reset = True )
104103 """
105104 Helper method for converting snake to camel case
106105
You can’t perform that action at this time.
0 commit comments