This commit is contained in:
Hachi-R 2024-12-22 06:58:20 -03:00
parent 1a286df3f7
commit fd5b2e08a5
14 changed files with 31 additions and 87 deletions

View file

@ -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"])

View file

@ -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()