Ejemplo n.º 1
0
def _create_game(league_id, creator_id, results, sport_id):
    # randomly select 2 opponents and set the score
    message = "Taking Numbers"
    return Game.create_game(league_id, creator_id, message, results, sport_id)
Ejemplo n.º 2
0
 def dispatch(self):
     """ Create new Game in database and return it. """
     self._object = Game.create_game(
         self._league_id, self._session.person_id, self._message, self._metrics_by_opponent, self._sport_id
     )