중복 함수 제거
This commit is contained in:
@ -12,17 +12,8 @@ with open(CONFIG_PATH, 'r', encoding='utf-8') as f:
|
||||
table_prefix = cfg.get('table_prefix', '')
|
||||
tables = cfg.get('tables', {})
|
||||
|
||||
def get_full_table_name(key):
|
||||
name_in_cfg = tables.get(key, '')
|
||||
if name_in_cfg:
|
||||
if name_in_cfg.startswith(table_prefix):
|
||||
return name_in_cfg
|
||||
else:
|
||||
return table_prefix + name_in_cfg
|
||||
else:
|
||||
return table_prefix + key
|
||||
|
||||
metadata = MetaData()
|
||||
default_mysql_opts = dict(mysql_engine='InnoDB', mysql_charset='utf8mb4')
|
||||
|
||||
def get_full_table_name(key):
|
||||
# config.yaml에서 tables: 항목의 실제 테이블명 가져오기
|
||||
|
||||
Reference in New Issue
Block a user