Working on data importing. Mainly for IDAA membership.
This commit is contained in:
@@ -62,7 +62,7 @@ def sql_insert(sql:str|None=None, data:dict|None=None, table_name:str|None=None,
|
||||
INSERT INTO `{table_name}` ({fields_string}) VALUES ({values_string});
|
||||
"""
|
||||
)
|
||||
print(sql_insert)
|
||||
# print(sql_insert)
|
||||
|
||||
log.debug(f"""
|
||||
INSERT INTO `{table_name}` ({fields_string}) VALUES ({values_string});
|
||||
@@ -301,7 +301,7 @@ def sql_select(
|
||||
max_count: int = 100000
|
||||
):
|
||||
current_log_level = log.level
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
if table_name and not (record_id or record_id_random or field_name or field_value or sql or data):
|
||||
|
||||
Reference in New Issue
Block a user