Skip to content
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

Merged
merged 31 commits into from
Sep 4, 2020
Merged

Slim down site and fix many database query issues #457

merged 31 commits into from
Sep 4, 2020

Conversation

Sciguymjm
Copy link
Member

Cache replay count
Include more ML models

@@ -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,
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here as above

Copy link
Member

@dtracers dtracers left a 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}>
Copy link
Member

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

Copy link
Member Author

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

#458

>
{playerPlayStyle}
</PlayerPlayStyleCard>
{/*<PlayerPlayStyleCard*/}
Copy link
Member

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
Copy link
Member

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%"}} />*/}
Copy link
Member

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

@Sciguymjm Sciguymjm merged commit e7f9c7b into master Sep 4, 2020
@delete-merged-branch delete-merged-branch bot deleted the ml branch September 4, 2020 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants