def update_team(this_team): try: this_team.prepare_for_save() team_json_string = jsonpickle.encode(this_team, keys=True) db.update_team(this_team.name, team_json_string) return True except: return None
def update_team(id, team): conn = sqlite3.connect(db) if (conn is not None): database.update_team(conn, id, team) conn.close()