web: ensure torrent keys are always str
Make sure that we aren't sending unicode strings as keys, always map them with str.
This commit is contained in:
parent
e8506b925f
commit
39d19b5afd
|
@ -614,7 +614,7 @@ class WebApi(JSONComponent):
|
|||
|
||||
@export
|
||||
def get_torrent_status(self, torrent_id, keys):
|
||||
return component.get("SessionProxy").get_torrent_status(torrent_id, keys)
|
||||
return component.get("SessionProxy").get_torrent_status(torrent_id, map(str, keys))
|
||||
|
||||
@export
|
||||
def get_torrent_files(self, torrent_id):
|
||||
|
|
Loading…
Reference in New Issue