-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add player/records endpoint #1839
base: master
Are you sure you want to change the base?
Conversation
Maybe each record should contain the full match object? |
@@ -451,6 +455,29 @@ function getMatchRankTier(match, cb) { | |||
}); | |||
} | |||
|
|||
function getPlayerRecords(player, cb) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is going to have to be cached in some way. . . otherwise this one call is making 20+ calls to the database
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps I should only call the getPlayerMatches function once and then sort the data from there? Or do you have other ideas how this should be handled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that might be more efficient.
This is to allow creating records overview on web, similar to dotabuff:
TODO: