rhgrant10 / berserk

Python client for the lichess API
https://berserk.readthedocs.io
Other
141 stars 36 forks source link

`sort` parameter missing from export_by_player? #43

Open supermitch opened 2 years ago

supermitch commented 2 years ago

Description

Lichess API has sort param: https://lichess.org/api#operation/apiUserCurrentGame But berserk is throwing TypeError: export_by_player() got an unexpected keyword argument 'sort'

What I Did

Tried to call:

games = client.games.export_by_player(
    user_a,
    vs=user_b,
    since=start,
    rated='true',
    sort='dateAsc',
)