mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-15 08:23:02 -03:00
lint
This commit is contained in:
@@ -68,7 +68,7 @@ def process_list():
|
||||
if auth_error:
|
||||
return auth_error
|
||||
|
||||
process_list = [proc.info for proc in psutil.process_iter(['exe', 'pid', 'username'])]
|
||||
process_list = [proc.info for proc in psutil.process_iter(['exe', 'pid', 'name'])]
|
||||
return jsonify(process_list), 200
|
||||
|
||||
@app.route("/profile-image", methods=["POST"])
|
||||
|
||||
@@ -128,7 +128,7 @@ class TorrentDownloader:
|
||||
self.torrent_handle = None
|
||||
|
||||
def get_download_status(self):
|
||||
if self.torrent_handle == None:
|
||||
if self.torrent_handle is None:
|
||||
return None
|
||||
|
||||
status = self.torrent_handle.status()
|
||||
|
||||
Reference in New Issue
Block a user