@@ -233,12 +233,12 @@ def get_schema(ds: CoreDatasource):
233233 with get_session (ds ) as session :
234234 sql : str = ''
235235 if ds .type == "sqlServer" :
236- sql = f """select name from sys.schemas"""
236+ sql = """select name from sys.schemas"""
237237 elif ds .type == "pg" or ds .type == "excel" :
238238 sql = """SELECT nspname
239239 FROM pg_namespace"""
240240 elif ds .type == "oracle" :
241- sql = f """select * from all_users"""
241+ sql = """select * from all_users"""
242242 with session .execute (text (sql )) as result :
243243 res = result .fetchall ()
244244 res_list = [item [0 ] for item in res ]
@@ -247,15 +247,15 @@ def get_schema(ds: CoreDatasource):
247247 if ds .type == 'dm' :
248248 with dmPython .connect (user = conf .username , password = conf .password , server = conf .host ,
249249 port = conf .port ) as conn , conn .cursor () as cursor :
250- cursor .execute (f """select OBJECT_NAME from dba_objects where object_type='SCH'""" , timeout = conf .timeout )
250+ cursor .execute ("""select OBJECT_NAME from dba_objects where object_type='SCH'""" , timeout = conf .timeout )
251251 res = cursor .fetchall ()
252252 res_list = [item [0 ] for item in res ]
253253 return res_list
254254 elif ds .type == 'redshift' :
255255 with redshift_connector .connect (host = conf .host , port = conf .port , database = conf .database , user = conf .username ,
256256 password = conf .password ,
257257 timeout = conf .timeout ) as conn , conn .cursor () as cursor :
258- cursor .execute (f """SELECT nspname FROM pg_namespace""" )
258+ cursor .execute ("""SELECT nspname FROM pg_namespace""" )
259259 res = cursor .fetchall ()
260260 res_list = [item [0 ] for item in res ]
261261 return res_list
0 commit comments