Comments (6)
Ultimately this is a consistency issue with the API. I'll see if there's any hope of fixing the API itself by asking the devs in the discord chat. If not then instead perhaps I can perform some sort of detection and convert them all into proper datetime objects.
from berserk.
Unfortunately it seems this is either somewhat by design or changing it would be troublesome without sacrificing backwards compatibility. I've got a somewhat elegant solution on the develop branch that I'll be releasing soon.
from berserk.
@sentrworks feel free to give it a whirl if you can and let me know if you find any issues before I release it :)
from berserk.
@rhgrant10 unfortunately it doesn't work. Despite I upgraded to berserk 0.1.2 to 0.2.1, in both versions the api "lichess.games.export_by_player(username=username,as_pgn=False,max=how_many_games,rated='true',moves='false')" returns 'createdAt' field in a timestamp format which needs to divide by 1000.
from berserk.
Yeah it's still on the develop branch. I haven't released it yet. I should be able to get to it this weekend though.
from berserk.
It's available now on the PyPI at v0.3.0 @sentrworks.
from berserk.
Related Issues (20)
- get_rating_hist returns raw json string instead of list HOT 1
- export_by_player incorrect work of a boolean argument rated HOT 1
- Play against AI problem. HOT 2
- How know the type of color on a challenge Random Color? HOT 1
- No method for api/tournament/{id}
- Use discord to launch lichess game and invite players to play, then be able to grab the game information after . HOT 1
- Add the openingExplorerLichess for master/lichess games HOT 1
- Oauth2 HOT 1
- Can't call get_activity_feed HOT 8
- Berserk `since` and `until` should be integers HOT 1
- `sort` parameter missing from export_by_player?
- using API from Alexa skill to play unlimited engine game HOT 2
- Challenge result does not reflect color HOT 1
- Get tournament bug HOT 1
- Two users at the same time?
- http.client.RemoteDisconnected: Remote end closed connection without response HOT 1
- TypeError using create_open meathod on raspian with Python 3.9 and lastest bersek version
- ChunkedEncodingError While extracting the data
- board seek function increment parameter in seconds, not minutes
- Lichess improving berserk UX HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from berserk.