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

player-rank #12

Merged
merged 1 commit into from
Feb 7, 2014
Merged

player-rank #12

merged 1 commit into from
Feb 7, 2014

Conversation

cdaviduik-va
Copy link
Owner

@dhopkins-va @gholtslander-va
Apologies in advance if I took some of this in a direction different then originally intended. I just wanted the score to get calculated when a replay is uploaded. We can chat about this next week if you want.

Player now online requires battle_net_name.
Submitting a replay now inflates player and associated rank model.
Submitting a replay now calculates score change.
Misc other changes which are hopefully improvements.

Player now online requires battle_net_name.
Submitting a replay now inflates player and associated rank model.
Submitting a replay now calculates score change.
Misc other changes which are hopefully improvements.
player_rank.put()


def update_player_ranks(winning_player_ranks, losing_player_ranks):
Copy link
Owner Author

Choose a reason for hiding this comment

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

I just calculate the average score of each team and then use that as if 1v1 and update player ranks based on calculated value. I think this should be fine. Does anyone see a problem?

@cdaviduik-va cdaviduik-va mentioned this pull request Feb 3, 2014
if isinstance(player_key, Key):
return player_key.get()
return PlayerModel.get_by_id(player_key)
season = season or Seasons.CURRENT_SEASON
Copy link

Choose a reason for hiding this comment

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

Cool.

@ghost
Copy link

ghost commented Feb 7, 2014

COMPLETE-OK

cdaviduik-va added a commit that referenced this pull request Feb 7, 2014
@cdaviduik-va cdaviduik-va merged commit e2385d4 into fixing-replay-upload Feb 7, 2014
@cdaviduik-va cdaviduik-va deleted the player-rank branch February 7, 2014 20:31
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.

1 participant