Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DjLegolas committed Jun 14, 2022
1 parent 00c7c51 commit 6727185
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion deluge/core/torrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 9 additions & 13 deletions deluge/ui/web/js/deluge-all/details/TrackersTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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(
Expand Down

0 comments on commit 6727185

Please sign in to comment.