From a745178244df5405add3480847e97bf2393ea0aa Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Fri, 25 Apr 2008 16:37:25 +0000 Subject: [PATCH] peers_tab:display ?% instead of KeyError on progress --- deluge/ui/webui/templates/deluge/tab_peers.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deluge/ui/webui/templates/deluge/tab_peers.html b/deluge/ui/webui/templates/deluge/tab_peers.html index 520f6c4b4..4ee94d0e1 100644 --- a/deluge/ui/webui/templates/deluge/tab_peers.html +++ b/deluge/ui/webui/templates/deluge/tab_peers.html @@ -20,11 +20,16 @@ $for peer in torrent.peers: $peer['country'] $peer['client'] + $if peer.get('progress'):
$int(peer['progress']) %
+ $else: +
+ ? % +