Display other peers optional files if we has not downloaded anything

This commit is contained in:
shortcutme 2017-10-03 14:36:50 +02:00
parent 52a468d9fd
commit 7eca3f4bc5
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -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 -<br>" % (connection_id, peer.connection_error, time_found, time_added, key)