Skip to content

Commit

Permalink
目录监控服务去重
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Oct 23, 2024
1 parent 4199438 commit dbf1b69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ def init(self):
if not monitor_dirs:
return

# 按下载目录去重
monitor_dirs = list({f"{d.storage}_{d.download_path}": d for d in monitor_dirs}.values())

# 启动定时服务进程
self._scheduler = BackgroundScheduler(timezone=settings.TZ)

Expand Down

0 comments on commit dbf1b69

Please sign in to comment.