fix: preserve file path order in build_file_path function
This commit is contained in:
parent
6efa8ab263
commit
a943265257
1 changed files with 2 additions and 4 deletions
|
|
@ -3136,10 +3136,8 @@ def build_file_path(already_file_paths, data_list, target):
|
||||||
# set: deduplication
|
# set: deduplication
|
||||||
file_paths_set = {fp for fp in already_file_paths if fp}
|
file_paths_set = {fp for fp in already_file_paths if fp}
|
||||||
|
|
||||||
# string: deduplication sorted
|
# string: filter empty value and keep file order in already_file_paths
|
||||||
file_paths = GRAPH_FIELD_SEP.join(
|
file_paths = GRAPH_FIELD_SEP.join(fp for fp in already_file_paths if fp)
|
||||||
list(dict.fromkeys(fp for fp in already_file_paths if fp))
|
|
||||||
)
|
|
||||||
# ignored file_paths
|
# ignored file_paths
|
||||||
file_paths_ignore = ""
|
file_paths_ignore = ""
|
||||||
# add file_paths
|
# add file_paths
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue