Made code look better on non-Gajim clients
This commit is contained in:
parent
91ca14b64d
commit
82a5c15bd4
2
bot.py
2
bot.py
|
@ -93,7 +93,7 @@ class QBittorrentAPICaller():
|
||||||
|
|
||||||
def torrentList(self, modifier=""):
|
def torrentList(self, modifier=""):
|
||||||
the_url = self.url + "/" + "api/v2/torrents/info"
|
the_url = self.url + "/" + "api/v2/torrents/info"
|
||||||
to_ret = "```"
|
to_ret = "```\n"
|
||||||
for f in ["downloading", "completed"]:
|
for f in ["downloading", "completed"]:
|
||||||
resp = self.session.post(the_url, data={"filter":f})
|
resp = self.session.post(the_url, data={"filter":f})
|
||||||
if resp.status_code != 200:
|
if resp.status_code != 200:
|
||||||
|
|
Loading…
Reference in New Issue