Skip to content

Commit

Permalink
fix #461 已转移成功的文件不重复处理
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 6, 2023
1 parent 61b7473 commit c593c3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/chain/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ def do_transfer(self, path: Path, meta: MetaBase = None,
logger.info(f"{file_path} 命中整理屏蔽词 {keyword},不处理")
continue

# 转移成功的不再处理
transferd = self.transferhis.get_by_src(file_path_str)
if transferd and transferd.status:
continue

if not meta:
# 上级目录元数据
dir_meta = MetaInfo(title=file_path.parent.name)
Expand Down

0 comments on commit c593c3b

Please sign in to comment.