refactor: change function name

pull/13/head
sean1832 1 year ago
parent a366adae9b
commit 3b16aa236c

@ -77,7 +77,7 @@ def parse_data(data, delimiter='', force=False):
return data
def read_files(file_dir, delimiter='', force=False, single_string=True, exclude_dir: list = None, supported_formats: list = None):
def read_bind_files(file_dir, delimiter='', force=False, single_string=True, exclude_dir: list = None, supported_formats: list = None):
contents = []
if exclude_dir is None:
exclude_dir = []

@ -132,13 +132,13 @@ def main():
exclude_dir = exclude_dir_official
# if advanced mode enabled
if advanced_mode:
note_datas = util.read_files(note_dir, single_string=False, exclude_dir=exclude_dir)
note_datas = util.read_bind_files(note_dir, single_string=False, exclude_dir=exclude_dir)
note_datas, filter_info = st_tools.filter_data(note_datas, add_filter_button, del_filter_button)
# note_datas, filter_key, filter_logic, filter_val = filter_data(note_datas, True)
modified_data = util.parse_data(note_datas, delimiter, force_delimiter)
else:
modified_data = util.read_files(note_dir, single_string=True, delimiter=delimiter,
force=force_delimiter, exclude_dir=exclude_dir)
modified_data = util.read_bind_files(note_dir, single_string=True, delimiter=delimiter,
force=force_delimiter, exclude_dir=exclude_dir)
# append mode
if append_mode:

Loading…
Cancel
Save