diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 5d6eeefaf4..859f424762 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -17,7 +17,7 @@ import os import socket import time -from typing import Optional, List +from typing import List, Optional from urllib.parse import urlparse from twisted.internet.defer import Deferred, DeferredList diff --git a/deluge/ui/web/js/deluge-all/details/TrackersTab.js b/deluge/ui/web/js/deluge-all/details/TrackersTab.js index f6ed1ceefa..452f0d202f 100644 --- a/deluge/ui/web/js/deluge-all/details/TrackersTab.js +++ b/deluge/ui/web/js/deluge-all/details/TrackersTab.js @@ -81,14 +81,10 @@ ? Deluge.Keys.Trackers : Deluge.Keys.TrackersRedundant; - deluge.client.web.get_torrent_status( - torrentId, - trackers_keys, - { - success: this.onTrackersRequestComplete, - scope: this, - } - ); + deluge.client.web.get_torrent_status(torrentId, trackers_keys, { + success: this.onTrackersRequestComplete, + scope: this, + }); }, onTrackersRequestComplete: function (status, options) { @@ -101,16 +97,16 @@ if (!this.can_get_trackers_info) { status['trackers'] = [ { - 'url': status['tracker_host'], - 'message': '' - } + url: status['tracker_host'], + message: '', + }, ]; var tracker_host = status['tracker_host']; status['trackers_status'] = { - tracker_host: status['tracker_status'] + tracker_host: status['tracker_status'], }; status['trackers_peers'] = {}; - }; + } // Go through the trackers updating and creating tracker records Ext.each(