Skip to content

Commit

Permalink
fix(brushtask): 自动删种任务:pt暂停做种异常:'Torrent' object has no attribute 'da…
Browse files Browse the repository at this point in the history
…te_done'
  • Loading branch information
xuyanling committed Feb 5, 2024
1 parent e1c3e88 commit 01855c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/brushtask.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ def __get_torrent_dict(downloader_type, torrent):
# ID
torrent_id = torrent.hashString
# 做种时间
if not hasattr(torrent, date_done) or not torrent.date_done or torrent.date_done.timestamp() < 1:
if not hasattr(torrent, 'date_done') or not torrent.date_done or torrent.date_done.timestamp() < 1:
seeding_time = 0
else:
seeding_time = date_now - int(torrent.date_done.timestamp())
Expand Down

0 comments on commit 01855c1

Please sign in to comment.