fix db session

This commit is contained in:
jxxghp
2023-10-18 18:30:09 +08:00
parent 68e16d18fe
commit 2e4536edb6
10 changed files with 48 additions and 48 deletions

View File

@ -577,9 +577,9 @@ class DirMonitor(_PluginBase):
"""
从表中获取download_hash避免连接下载器
"""
downloadHis = self.downloadhis.get_file_by_fullpath(src)
if downloadHis:
return downloadHis.download_hash
download_file = self.downloadhis.get_file_by_fullpath(src)
if download_file:
return download_file.download_hash
return None
def get_state(self) -> bool: