-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Slim down site and fix many database query issues #457
Conversation
@@ -33,13 +34,38 @@ def create_from_id(id_: str, session=None) -> List['PredictedRank']: | |||
accepted_playlists = [ | |||
13, # standard | |||
3, # unranked standard | |||
6, # custom | |||
6, # custom, |
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.
is it required to be in this exact order?
just thinking that putting them in numbered order might be easier to read
] | ||
if game.playlist not in accepted_playlists: | ||
raise UnsupportedPlaylist | ||
|
||
playergames = session.query(PlayerGame).filter(PlayerGame.game == id_).all() | ||
|
||
adjusted_playlist_map = { | ||
2: 11, |
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.
same here as above
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.
Just some super minor things. overall looks good! 👍
@@ -76,12 +74,12 @@ class SideBarComponent extends React.PureComponent<Props> { | |||
<Divider component="li" /> | |||
|
|||
<ListSubheader>Player</ListSubheader> | |||
<ListItem button component={this.createLink} to={LEADERBOARDS_LINK}> | |||
{/* <ListItem button component={this.createLink} to={LEADERBOARDS_LINK}> |
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.
Maybe link a github issue to this so we don't drop it or have no tracking for it long term
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.
It's not going away. The front page is until I can figure out a better way to get the most recent games
> | ||
{playerPlayStyle} | ||
</PlayerPlayStyleCard> | ||
{/*<PlayerPlayStyleCard*/} |
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.
Link this to a github issue to make sure it does not get dropped
/> | ||
) | ||
// const playerPlayStyle = ( | ||
// <PlayerPlayStyle |
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.
Link this to a github issue to make sure it does not get dropped
@@ -170,26 +167,26 @@ class HomePageComponent extends React.PureComponent<Props, State> { | |||
{isWidthUp("md", this.props.width) ? ( | |||
<> | |||
<Grid item container xs={12} sm={6} lg={4}> | |||
<Twitch cardStyle={{width: "100%"}} /> | |||
{/*<Twitch cardStyle={{width: "100%"}} />*/} |
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.
Link these to a github issue to make sure it does not get dropped
Cache replay count
Include more ML models