You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What i have got: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/lichess/venv/lib/python3.8/site-packages/berserk/clients.py", line 193, in get_realtime_statuses params = {'ids': ','.join(user_ids)} TypeError: sequence item 0: expected str instance, list found
In source code of this function i've found this string: params = {'ids': ','.join(user_ids)}
and withoung calling directly get_realtime_statuses:
client.users.get_realtime_statuses(*['Sasageyo', 'Voinikonis_Nikita', 'Zugzwangerz']) or client.users.get_realtime_statuses('Sasageyo', 'Voinikonis_Nikita', 'Zugzwangerz') should work,
kraktus
pushed a commit
to kraktus/berserk
that referenced
this issue
Jul 28, 2023
Description
I am trying to call the function
get_realtime_statuses
.import berserk
session = berserk.TokenSession(API_TOKEN)
client = berserk.Client(session=session)
client.users.get_realtime_statuses(['Sasageyo', 'Voinikonis_Nikita', 'Zugzwangerz'])
Output
What i have got:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/lichess/venv/lib/python3.8/site-packages/berserk/clients.py", line 193, in get_realtime_statuses
params = {'ids': ','.join(user_ids)}
TypeError: sequence item 0: expected str instance, list found
In source code of this function i've found this string:
params = {'ids': ','.join(user_ids)}
and withoung calling directly
get_realtime_statuses
:params = {'ids': ','.join(['Sasageyo', 'Voinikonis_Nikita', 'Zugzwangerz'])}
returns{'ids': 'Sasageyo,Voinikonis_Nikita,Zugzwangerz'}
The text was updated successfully, but these errors were encountered: