Exemplo n.º 1
0
 def _create_team(name, metas={}):
     data = {"name": name}
     if metas:
         data["metas"] = metas
     with app.app_context():
         return TeamController.create(data)
Exemplo n.º 2
0
 def _create_team(name):
     with app.app_context():
         return TeamController.create({'name': name})