From 7eca3f4bc54d2876d7b963b5758728da9e0c9ee6 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 3 Oct 2017 14:36:50 +0200 Subject: [PATCH] Display other peers optional files if we has not downloaded anything --- plugins/Stats/StatsPlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Stats/StatsPlugin.py b/plugins/Stats/StatsPlugin.py index afba9086..e9c420e6 100644 --- a/plugins/Stats/StatsPlugin.py +++ b/plugins/Stats/StatsPlugin.py @@ -165,7 +165,7 @@ class UiRequestPlugin(object): connection_id = peer.connection.id else: connection_id = None - if site.content_manager.hashfield: + if site.content_manager.has_optional_files: yield "Optional files: %4s " % len(peer.hashfield) time_added = (time.time() - peer.time_added) / (60 * 60 * 24) yield "(#%4s, err: %s, found: %3s min, add: %.1f day) %30s -
" % (connection_id, peer.connection_error, time_found, time_added, key)