diff --git a/auto_pt/views.py b/auto_pt/views.py index e108629..f86392e 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -141,7 +141,7 @@ def get_downloading(request): 'day,', '天' ).replace(':', '小时', 1).replace(':', '分', 1).split('.')[0] + '秒' # 大小与速度处理 - torrent['state'] = TorrentBaseInfo.download_state.get(torrent.get('state')) + # torrent['state'] = TorrentBaseInfo.download_state.get(torrent.get('state')) torrent['ratio'] = '%.4f' % torrent.get('ratio') if torrent['ratio'] >= 0.0001 else 0 torrent['progress'] = '%.4f' % torrent.get('progress') if float(torrent['progress']) < 1 else 1 torrent['uploaded'] = '' if torrent['uploaded'] == 0 else torrent['uploaded'] diff --git a/templates/auto_pt/downloading.html b/templates/auto_pt/downloading.html index 7ff3ffb..1ded367 100644 --- a/templates/auto_pt/downloading.html +++ b/templates/auto_pt/downloading.html @@ -60,7 +60,7 @@