Leaderboad Doesn't Work
allenweiss opened this issue · 4 comments
allenweiss commented
I'm using this command for the leaderboard - just as it is in the description
print(lingo.get_leaderboard('week'))
but I keep getting this error
TypeError: get_leaderboard() missing 1 required positional argument: 'before'
According to the docs, you don't any other parameter - but it appears you do.
igorskh commented
Documentation says it's optional, but the implementation requires before
argument, so you do have to provide it.
You can try something like this:
from datetime import datetime
print(lingo.get_leaderboard('week', datetime.now().strftime("%Y.%m.%d %H:%M:%S")))
However apparently there is another issue related to #117, which results in the following error:
KeyError: 'points_ranking_data'
allenweiss commented
right..I tried that and got the points_ranking_data error as well
Bapt5 commented
I'm trying to fix the issue. I will open a pull request soon