From 6727185d19d0f22789e6a4df01c74b4a3ccb4978 Mon Sep 17 00:00:00 2001 From: DjLegolas Date: Sat, 30 Apr 2022 16:02:45 +0300 Subject: [PATCH] fixed lint --- deluge/core/torrent.py | 2 +- .../web/js/deluge-all/details/TrackersTab.js | 22 ++++++++----------- 2 files changed, 10 insertions(+), 14 deletions(-) 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(