[Console] Fix torrent details status error

The torrent status num_peers and num_seeds was replaced for session
status keys by accident as part of replacing deprecated session keys
so revert those changes

Ref: 2bd095e5bf
This commit is contained in:
Calum Lind 2022-02-17 20:18:19 +00:00
parent 055a84bb15
commit 5f8acabb81
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 2 additions and 2 deletions

View File

@ -541,13 +541,13 @@ class TorrentDetail(BaseMode, PopupsHandler):
# Seed/peer info # Seed/peer info
s = '{{!info!}}{}:{{!green!}} {} {{!input!}}({})'.format( s = '{{!info!}}{}:{{!green!}} {} {{!input!}}({})'.format(
torrent_data_fields['seeds']['name'], torrent_data_fields['seeds']['name'],
status['peer.num_peers_connected'], status['num_seeds'],
status['total_seeds'], status['total_seeds'],
) )
row = self.add_string(row, s) row = self.add_string(row, s)
s = '{{!info!}}{}:{{!red!}} {} {{!input!}}({})'.format( s = '{{!info!}}{}:{{!red!}} {} {{!input!}}({})'.format(
torrent_data_fields['peers']['name'], torrent_data_fields['peers']['name'],
status['peer.num_peers_connected'], status['num_peers'],
status['total_peers'], status['total_peers'],
) )
row = self.add_string(row, s) row = self.add_string(row, s)