Last active
November 27, 2019 19:26
-
-
Save Whenrow/5afaa082a233980d729d6d9a26315856 to your computer and use it in GitHub Desktop.
Update ole rating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
players = self.env['res.partner'].search([ | |
('kicker_player', '=', True) | |
]).write({'ole_rating': 1500}) | |
matches = self.env['kicker.game'].search([]).sorted('create_date') | |
for match in matches: | |
match._update_ole_rating() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment