Giter VIP home page Giter VIP logo

cgstats's People

Contributors

adrienvannson avatar agade09 avatar azkellas avatar brunocf avatar coac avatar d-s-x avatar dependabot[bot] avatar dreignier avatar inoryy avatar s-vivien avatar tiramon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cgstats's Issues

Only top 1000 leaderboard entries analyzed

url : 'https://www.codingame.com/services/LeaderboardsRemoteService/getPuzzleLeaderboard',

they added 1000 users cap so this code no longer works as expected.

it is possible to call getFilteredPuzzleLeaderboard instead with body
[game, user.publicHandle,,{active: true, column: "CODINGAMER", filter: "FOLLOWING"}] but there is no easy way to get user's handle by user's name.

Scroll to the ranking table after a search

pboss4 11:18PM
La plupart du temps l'info que je cherche elle est dans le tableau, pas dans le titre cgstats, dans les notes ou dans l'interface
Magus 11:18PM
ah oui tu veux scroller devant le tableau
c'est facile à faire aussi
pboss4 11:19PM
Si le scroll par défaut pouvait être sur le tableau ça serait idéal, quitte à remonter pour changer la recherche
Voilà

Random crash, maybe with a unfinished request

Sometime the cgstats nodejs program crash with this stack :

/home/dreignier/cgstats/cgstats.js:190
      resolve(body.success);
                  ^

TypeError: Cannot read property 'success' of undefined
    at Request._callback (/home/dreignier/cgstats/cgstats.js:190:19)
    at Request.self.callback (/home/dreignier/cgstats/node_modules/request/request.js:198:22)
    at emitTwo (events.js:125:13)
    at Request.emit (events.js:213:7)
    at Request.<anonymous> (/home/dreignier/cgstats/node_modules/request/request.js:1063:14)
    at emitOne (events.js:120:20)
    at Request.emit (events.js:210:7)
    at IncomingMessage.<anonymous> (/home/dreignier/cgstats/node_modules/request/request.js:1009:12)
    at emitNone (events.js:110:20)
    at IncomingMessage.emit (events.js:207:7)

The fast solution is to protect the code of course.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.