diff --git a/app/brushtask.py b/app/brushtask.py index da202b3e..876c9644 100644 --- a/app/brushtask.py +++ b/app/brushtask.py @@ -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())