diff --git a/app.py b/app.py index ade57eb..2587ae5 100644 --- a/app.py +++ b/app.py @@ -1,17 +1,24 @@ # Third-party imports from flask import Flask, jsonify, request import json - -from flask_cors import CORS, cross_origin +from dotenv import load_dotenv +import os +from flask_cors import CORS # from decouple import config from fantasy_app.functions import get_current_matchups, current_week, get_most_position_points, order_positions_by_points from fantasy_app.contest_list import contests import firebase_admin from firebase_admin import credentials, db +load_dotenv() +DATABASE_URL = os.getenv('DATABASE_URL') +CREDS = os.getenv('CREDS') -cred = credentials.Certificate("./key.json") -firebase_admin.initialize_app(cred) +cred = credentials.Certificate(CREDS) +if not firebase_admin._apps: + firebase_admin.initialize_app(cred, { + 'databaseURL': DATABASE_URL + }) # app.config['SQLALCHEMY_DATABASE_URI'] = config('DATABASE_URL') @@ -31,10 +38,6 @@ def hello1(): @app.route('/test_submodule', methods=['GET']) def submodule(): matchups = get_current_matchups() - for matchup_index, matchup in enumerate(matchups): - away = matchup.away_lineup - for player_index, player in enumerate(away): - team = matchup.away_team.team_name return jsonify(str(matchups)) @@ -63,18 +66,29 @@ def highest_score(): @app.route('/most_points_get', methods=['GET']) def calculate_most_points_get(): + contest_dict = {} stat = 'total_lb_points' points = get_most_position_points( contests[stat]['position_list'], current_week()-1) - ranks = order_positions_by_points(points) - return jsonify(ranks) + contest_dict['contest_results'] = order_positions_by_points(points) + contest_dict['contest'] = stat + return jsonify(contest_dict) @app.route('/most_points_post', methods=['POST']) def calculate_most_points_post(): + output_dict = {} + contest_dict = {} point_request = request.get_json() stat = point_request['contest'] + week = point_request['week'] + year = point_request['year'] points = get_most_position_points( - contests[stat]['position_list'], current_week()) - ranks = order_positions_by_points(points) - return jsonify(ranks) + contests[stat]['position_list'], week) + contest_dict['contest_results'] = order_positions_by_points(points) + contest_dict['contest'] = stat + output_week = "week_" + str(week) + output_dict[output_week] = contest_dict + ref = db.reference("/" + str(year)) + ref.push(output_dict) + return '{"status":"200", "data": "OK"}' diff --git a/db.ipynb b/db.ipynb index 7fca144..b11c171 100644 --- a/db.ipynb +++ b/db.ipynb @@ -21,29 +21,27 @@ }, { "cell_type": "code", - "execution_count": 53, + "metadata": {}, "outputs": [], "source": [ "from dotenv import load_dotenv\n", "import os\n", "load_dotenv()\n", + "DATABASE_URL = os.getenv('DATABASE_URL')\n", "CREDS = os.getenv('CREDS')" ] }, { "cell_type": "code", - "execution_count": 3, + "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "<firebase_admin.App at 0x28feac8f100>" - ] - }, - "execution_count": 3, + "metadata": {}, "output_type": "execute_result" } @@ -55,7 +53,7 @@ }, { "cell_type": "code", - "execution_count": 54, + "metadata": {}, "outputs": [], "source": [ @@ -69,16 +67,13 @@ }, { "cell_type": "code", - "execution_count": 5, + "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "<firebase_admin.App at 0x28feac8f100>" - ] - }, - "execution_count": 5, + "metadata": {}, "output_type": "execute_result" } @@ -94,7 +89,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "metadata": {}, "outputs": [ { @@ -109,28 +104,78 @@ } ], "source": [ - "ref.push(\"2023\")" + + "ref = db.reference(\"/2023\")" + ] }, { "cell_type": "code", - "execution_count": 52, + "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "{'-Nijq-obWPuF13Udi6zl': {'Week_7': {'contest': 'vnake;jrhngf',\n", - " 'contest_results': [{'players': [{'game_played': 100,\n", - " 'name': 'Roquan Smith',\n", - " 'score': 7.4},\n", - " {'game_played': 100, 'name': \"Ja'Whaun Bentley\", 'score': 31.3}],\n", - " 'rank': 1,\n", - " 'team': 'Lets Get Weird 🐸',\n", - " 'total_score': 6999}]}}}" + + "{'Week': 3,\n", + " 'contest': 'Most LB Points',\n", + " 'contest_results': [{'player1': {'game_played': 100,\n", + " 'name': 'Foyesade Oluokun',\n", + " 'score': 39.1},\n", + " 'player2': {'game_played': 100, 'name': 'Ernest Jones', 'score': 6.7},\n", + " 'rank': 1,\n", + " 'team': 'Lets Get Weird 🐸',\n", + " 'total_score': 45.800000000000004},\n", + " {'player1': {'game_played': 100, 'name': 'Bobby Okereke', 'score': 17.2},\n", + " 'player2': {'game_played': 100, 'name': 'Tremaine Edmunds', 'score': 20.6},\n", + " 'rank': 2,\n", + " 'team': 'You Hate to See That',\n", + " 'total_score': 37.8},\n", + " {'player1': {'game_played': 100, 'name': 'Bobby Wagner', 'score': 11.7},\n", + " 'player2': {'game_played': 100, 'name': 'Fred Warner', 'score': 22.4},\n", + " 'rank': 3,\n", + " 'team': 'Ma heart Mahomes',\n", + " 'total_score': 34.099999999999994},\n", + " {'player1': {'game_played': 100, 'name': 'Kyzir White', 'score': 12.4},\n", + " 'player2': {'game_played': 100, 'name': 'Devin Lloyd', 'score': 17.6},\n", + " 'rank': 4,\n", + " 'team': \"You're being a Kyren\",\n", + " 'total_score': 30.0},\n", + " {'player1': {'game_played': 100, 'name': 'Roquan Smith', 'score': 12.3},\n", + " 'player2': {'game_played': 100, 'name': 'Alex Singleton', 'score': 16.9},\n", + " 'rank': 5,\n", + " 'team': 'Maxxy Pats',\n", + " 'total_score': 29.2},\n", + " {'player1': {'game_played': 100, 'name': 'Jordan Hicks', 'score': 14.0},\n", + " 'player2': {'game_played': 100, 'name': 'Dre Greenlaw', 'score': 13.4},\n", + " 'rank': 6,\n", + " 'team': 'Baby got Dak',\n", + " 'total_score': 27.4},\n", + " {'player1': {'game_played': 100, 'name': 'Terrel Bernard', 'score': 22.8},\n", + " 'player2': {'game_played': 100, 'name': 'Cody Barton', 'score': 1.4},\n", + " 'rank': 7,\n", + " 'team': 'I h8 justin',\n", + " 'total_score': 24.2},\n", + " {'player1': {'game_played': 100, 'name': 'Zaire Franklin', 'score': 14.8},\n", + " 'player2': {'game_played': 100, 'name': 'Patrick Queen', 'score': 7.0},\n", + " 'rank': 8,\n", + " 'team': '- CircleKirk',\n", + " 'total_score': 21.8},\n", + " {'player1': {'game_played': 100, 'name': 'Quay Walker', 'score': 10.7},\n", + " 'player2': {'game_played': 100, 'name': 'Robert Spillane', 'score': 10.3},\n", + " 'rank': 9,\n", + " 'team': 'Justys Spilled Seed ',\n", + " 'total_score': 21.0},\n", + " {'player1': {'game_played': 100, 'name': 'T.J. Edwards', 'score': 2.8},\n", + " 'player2': {'game_played': 100, 'name': 'Pete Werner', 'score': 5.6},\n", + " 'rank': 10,\n", + " 'team': 'Punter? I Hardly Know Her',\n", + " 'total_score': 8.399999999999999}]}" ] }, - "execution_count": 52, + "execution_count": 13, + "metadata": {}, "output_type": "execute_result" } @@ -141,64 +186,168 @@ }, { "cell_type": "code", - "execution_count": 36, - "metadata": {}, - "outputs": [], - "source": [ - "ref = db.reference(\"/2022\")" - ] - }, - { - "cell_type": "code", - "execution_count": 38, + "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "{'-Nijq-obWPuF13Udi6zl': {'Week_7': {'contest': 'fdsafsd',\n", - " 'contest_results': [{'players': [{'game_played': 100,\n", - " 'name': 'Foyesade Oluokun',\n", - " 'score': 39.1},\n", - " {'game_played': 100, 'name': 'Ernest Jones', 'score': 6.7}],\n", - " 'rank': 1,\n", - " 'team': 'Lets Get Weird 🐸',\n", - " 'total_score': 45.800000000000004}]}}}" + + "{'-NiFkEYRMyUnxkHJxjMZ': {'Week': 4,\n", + " 'contest': 'Most Kicker Points',\n", + " 'contest_results': [{'player1': {'game_played': 100,\n", + " 'name': 'Foyesade Oluokun',\n", + " 'score': 39.1},\n", + " 'player2': {'game_played': 100, 'name': 'Ernest Jones', 'score': 6.7},\n", + " 'rank': 1,\n", + " 'team': 'Lets Get Weird 🐸',\n", + " 'total_score': 45.800000000000004},\n", + " {'player1': {'game_played': 100, 'name': 'Bobby Okereke', 'score': 17.2},\n", + " 'player2': {'game_played': 100, 'name': 'Tremaine Edmunds', 'score': 20.6},\n", + " 'rank': 2,\n", + " 'team': 'You Hate to See That',\n", + " 'total_score': 37.8},\n", + " {'player1': {'game_played': 100, 'name': 'Bobby Wagner', 'score': 11.7},\n", + " 'player2': {'game_played': 100, 'name': 'Fred Warner', 'score': 22.4},\n", + " 'rank': 3,\n", + " 'team': 'Ma heart Mahomes',\n", + " 'total_score': 34.099999999999994},\n", + " {'player1': {'game_played': 100, 'name': 'Kyzir White', 'score': 12.4},\n", + " 'player2': {'game_played': 100, 'name': 'Devin Lloyd', 'score': 17.6},\n", + " 'rank': 4,\n", + " 'team': \"You're being a Kyren\",\n", + " 'total_score': 30.0},\n", + " {'player1': {'game_played': 100, 'name': 'Roquan Smith', 'score': 12.3},\n", + " 'player2': {'game_played': 100, 'name': 'Alex Singleton', 'score': 16.9},\n", + " 'rank': 5,\n", + " 'team': 'Maxxy Pats',\n", + " 'total_score': 29.2},\n", + " {'player1': {'game_played': 100, 'name': 'Jordan Hicks', 'score': 14.0},\n", + " 'player2': {'game_played': 100, 'name': 'Dre Greenlaw', 'score': 13.4},\n", + " 'rank': 6,\n", + " 'team': 'Baby got Dak',\n", + " 'total_score': 27.4},\n", + " {'player1': {'game_played': 100, 'name': 'Terrel Bernard', 'score': 22.8},\n", + " 'player2': {'game_played': 100, 'name': 'Cody Barton', 'score': 1.4},\n", + " 'rank': 7,\n", + " 'team': 'I h8 justin',\n", + " 'total_score': 24.2},\n", + " {'player1': {'game_played': 100, 'name': 'Zaire Franklin', 'score': 14.8},\n", + " 'player2': {'game_played': 100, 'name': 'Patrick Queen', 'score': 7.0},\n", + " 'rank': 8,\n", + " 'team': '- CircleKirk',\n", + " 'total_score': 21.8},\n", + " {'player1': {'game_played': 100, 'name': 'Quay Walker', 'score': 10.7},\n", + " 'player2': {'game_played': 100, 'name': 'Robert Spillane', 'score': 10.3},\n", + " 'rank': 9,\n", + " 'team': 'Justys Spilled Seed ',\n", + " 'total_score': 21.0},\n", + " {'player1': {'game_played': 100, 'name': 'T.J. Edwards', 'score': 2.8},\n", + " 'player2': {'game_played': 100, 'name': 'Pete Werner', 'score': 5.6},\n", + " 'rank': 10,\n", + " 'team': 'Punter? I Hardly Know Her',\n", + " 'total_score': 8.399999999999999}]},\n", + " 'Week': 3,\n", + " 'contest': 'Most LB Points',\n", + " 'contest_results': [{'player1': {'game_played': 100,\n", + " 'name': 'Foyesade Oluokun',\n", + " 'score': 39.1},\n", + " 'player2': {'game_played': 100, 'name': 'Ernest Jones', 'score': 6.7},\n", + " 'rank': 1,\n", + " 'team': 'Lets Get Weird 🐸',\n", + " 'total_score': 45.800000000000004},\n", + " {'player1': {'game_played': 100, 'name': 'Bobby Okereke', 'score': 17.2},\n", + " 'player2': {'game_played': 100, 'name': 'Tremaine Edmunds', 'score': 20.6},\n", + " 'rank': 2,\n", + " 'team': 'You Hate to See That',\n", + " 'total_score': 37.8},\n", + " {'player1': {'game_played': 100, 'name': 'Bobby Wagner', 'score': 11.7},\n", + " 'player2': {'game_played': 100, 'name': 'Fred Warner', 'score': 22.4},\n", + " 'rank': 3,\n", + " 'team': 'Ma heart Mahomes',\n", + " 'total_score': 34.099999999999994},\n", + " {'player1': {'game_played': 100, 'name': 'Kyzir White', 'score': 12.4},\n", + " 'player2': {'game_played': 100, 'name': 'Devin Lloyd', 'score': 17.6},\n", + " 'rank': 4,\n", + " 'team': \"You're being a Kyren\",\n", + " 'total_score': 30.0},\n", + " {'player1': {'game_played': 100, 'name': 'Roquan Smith', 'score': 12.3},\n", + " 'player2': {'game_played': 100, 'name': 'Alex Singleton', 'score': 16.9},\n", + " 'rank': 5,\n", + " 'team': 'Maxxy Pats',\n", + " 'total_score': 29.2},\n", + " {'player1': {'game_played': 100, 'name': 'Jordan Hicks', 'score': 14.0},\n", + " 'player2': {'game_played': 100, 'name': 'Dre Greenlaw', 'score': 13.4},\n", + " 'rank': 6,\n", + " 'team': 'Baby got Dak',\n", + " 'total_score': 27.4},\n", + " {'player1': {'game_played': 100, 'name': 'Terrel Bernard', 'score': 22.8},\n", + " 'player2': {'game_played': 100, 'name': 'Cody Barton', 'score': 1.4},\n", + " 'rank': 7,\n", + " 'team': 'I h8 justin',\n", + " 'total_score': 24.2},\n", + " {'player1': {'game_played': 100, 'name': 'Zaire Franklin', 'score': 14.8},\n", + " 'player2': {'game_played': 100, 'name': 'Patrick Queen', 'score': 7.0},\n", + " 'rank': 8,\n", + " 'team': '- CircleKirk',\n", + " 'total_score': 21.8},\n", + " {'player1': {'game_played': 100, 'name': 'Quay Walker', 'score': 10.7},\n", + " 'player2': {'game_played': 100, 'name': 'Robert Spillane', 'score': 10.3},\n", + " 'rank': 9,\n", + " 'team': 'Justys Spilled Seed ',\n", + " 'total_score': 21.0},\n", + " {'player1': {'game_played': 100, 'name': 'T.J. Edwards', 'score': 2.8},\n", + " 'player2': {'game_played': 100, 'name': 'Pete Werner', 'score': 5.6},\n", + " 'rank': 10,\n", + " 'team': 'Punter? I Hardly Know Her',\n", + " 'total_score': 8.399999999999999}]}" ] }, - "execution_count": 38, + "execution_count": 15, + "metadata": {}, "output_type": "execute_result" } ], "source": [ - "db.reference(\"/2022\").get()" + + "db.reference(\"/2023\").get()" + ] }, { "cell_type": "code", - "execution_count": 28, + "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "<firebase_admin.db.Reference at 0x24da340aeb0>" + ] + }, + "execution_count": 19, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "ref.update({\n", - " \"Week_7\":\n", + "ref.push({\n", + " \"Week_4\":\n", " {\n", - " \"contest\": \"vnake;jrhngf\",\n", + " \"contest\": \"Most Kicker Points\",\n", " \"contest_results\": [\n", " {\n", - " \"players\": [\n", - " {\n", - " \"game_played\": 100,\n", - " \"name\": \"Roquan Smith\",\n", - " \"score\": 7.4\n", - " },\n", - " {\n", - " \"game_played\": 100,\n", - " \"name\": \"Ja'Whaun Bentley\",\n", - " \"score\": 31.3\n", - " }\n", - " ],\n", + " \"players\":[{\n", + " \"game_played\": 100,\n", + " \"name\": \"Foyesade Oluokun\",\n", + " \"score\": 39.1\n", + " },\n", + " {\n", + " \"game_played\": 100,\n", + " \"name\": \"Ernest Jones\",\n", + " \"score\": 6.7\n", + " }],\n", " \"rank\": 1,\n", " \"team\": \"Lets Get Weird \\ud83d\\udc38\",\n", " \"total_score\": 45.800000000000004\n", @@ -206,42 +355,7 @@ " ]\n", "}\n", "})" - ] - }, - { - "cell_type": "code", - "execution_count": 51, - "metadata": {}, - "outputs": [], - "source": [ - "\n", - "for key, value in ref.get().items():\n", - " if (value[\"Week_7\"]):\n", - "\n", - " ref.child(key).child(\"Week_7\").update(\n", - " {\n", - " \"contest\": \"vnake;jrhngf\",\n", - " \"contest_results\": [\n", - " {\n", - " \"players\": [\n", - " {\n", - " \"game_played\": 100,\n", - " \"name\": \"Roquan Smith\",\n", - " \"score\": 7.4\n", - " },\n", - " {\n", - " \"game_played\": 100,\n", - " \"name\": \"Ja'Whaun Bentley\",\n", - " \"score\": 31.3\n", - " }\n", - " ],\n", - " \"rank\": 1,\n", - " \"team\": \"Lets Get Weird \\ud83d\\udc38\",\n", - " \"total_score\": 6999\n", - " }\n", - " ]\n", - "}\n", - ")" + ] } ], diff --git a/fantasy_app/functions.py b/fantasy_app/functions.py index 2d336b6..909bb04 100644 --- a/fantasy_app/functions.py +++ b/fantasy_app/functions.py @@ -125,16 +125,22 @@ def create_dictionary(team_name, lineup, position, stat, player_dict): def new_dict(position, current_dict, lineup): count = 0 total_score = 0 + player_list = [] for player in lineup: if player.slot_position in position: + count += 1 - current_dict['player{}'.format(count)] = { + temp_dict = { 'name': player.name, 'score': player.points, 'game_played': player.game_played } + total_score += player.points + player_list.append(temp_dict) + current_dict['total_score'] = total_score + current_dict['players'] = player_list return current_dict diff --git a/results.json b/results.json new file mode 100644 index 0000000..3c2db60 --- /dev/null +++ b/results.json @@ -0,0 +1,158 @@ +{ + "2023": { + "Week": 3, + "contest": "Most LB Points", + "contest_results": [ + { + "player1": { + "game_played": 100, + "name": "Foyesade Oluokun", + "score": 39.1 + }, + "player2": { + "game_played": 100, + "name": "Ernest Jones", + "score": 6.7 + }, + "rank": 1, + "team": "Lets Get Weird \ud83d\udc38", + "total_score": 45.800000000000004 + }, + { + "player1": { + "game_played": 100, + "name": "Bobby Okereke", + "score": 17.2 + }, + "player2": { + "game_played": 100, + "name": "Tremaine Edmunds", + "score": 20.6 + }, + "rank": 2, + "team": "You Hate to See That", + "total_score": 37.8 + }, + { + "player1": { + "game_played": 100, + "name": "Bobby Wagner", + "score": 11.7 + }, + "player2": { + "game_played": 100, + "name": "Fred Warner", + "score": 22.4 + }, + "rank": 3, + "team": "Ma heart Mahomes", + "total_score": 34.099999999999994 + }, + { + "player1": { + "game_played": 100, + "name": "Kyzir White", + "score": 12.4 + }, + "player2": { + "game_played": 100, + "name": "Devin Lloyd", + "score": 17.6 + }, + "rank": 4, + "team": "You're being a Kyren", + "total_score": 30.0 + }, + { + "player1": { + "game_played": 100, + "name": "Roquan Smith", + "score": 12.3 + }, + "player2": { + "game_played": 100, + "name": "Alex Singleton", + "score": 16.9 + }, + "rank": 5, + "team": "Maxxy Pats", + "total_score": 29.2 + }, + { + "player1": { + "game_played": 100, + "name": "Jordan Hicks", + "score": 14.0 + }, + "player2": { + "game_played": 100, + "name": "Dre Greenlaw", + "score": 13.4 + }, + "rank": 6, + "team": "Baby got Dak", + "total_score": 27.4 + }, + { + "player1": { + "game_played": 100, + "name": "Terrel Bernard", + "score": 22.8 + }, + "player2": { + "game_played": 100, + "name": "Cody Barton", + "score": 1.4 + }, + "rank": 7, + "team": "I h8 justin", + "total_score": 24.2 + }, + { + "player1": { + "game_played": 100, + "name": "Zaire Franklin", + "score": 14.8 + }, + "player2": { + "game_played": 100, + "name": "Patrick Queen", + "score": 7.0 + }, + "rank": 8, + "team": "- CircleKirk", + "total_score": 21.8 + }, + { + "player1": { + "game_played": 100, + "name": "Quay Walker", + "score": 10.7 + }, + "player2": { + "game_played": 100, + "name": "Robert Spillane", + "score": 10.3 + }, + "rank": 9, + "team": "Justys Spilled Seed ", + "total_score": 21.0 + }, + { + "player1": { + "game_played": 100, + "name": "T.J. Edwards", + "score": 2.8 + }, + "player2": { + "game_played": 100, + "name": "Pete Werner", + "score": 5.6 + }, + "rank": 10, + "team": "Punter? I Hardly Know Her", + "total_score": 8.399999999999999 + } + ] + } +} diff --git a/results1.json b/results1.json new file mode 100644 index 0000000..1963120 --- /dev/null +++ b/results1.json @@ -0,0 +1,177 @@ +{ + "week_4": { + "contest": "total_lb_points", + "contest_results": [ + { + "players": [ + { + "game_played": 100, + "name": "Foyesade Oluokun", + "score": 17.3 + }, + { + "game_played": 100, + "name": "Quincy Williams", + "score": 23.5 + } + ], + "rank": 1, + "team": "Lets Get Weird \ud83d\udc38", + "total_score": 40.8 + }, + { + "players": [ + { + "game_played": 100, + "name": "Zaire Franklin", + "score": 23.2 + }, + { + "game_played": 100, + "name": "Patrick Queen", + "score": 16.8 + } + ], + "rank": 2, + "team": "- CircleKirk", + "total_score": 40.0 + }, + { + "players": [ + { + "game_played": 100, + "name": "Bobby Wagner", + "score": 20.2 + }, + { + "game_played": 100, + "name": "Fred Warner", + "score": 17.7 + } + ], + "rank": 3, + "team": "Ma heart Mahomes", + "total_score": 37.9 + }, + { + "players": [ + { + "game_played": 100, + "name": "C.J. Mosley", + "score": 20.8 + }, + { + "game_played": 100, + "name": "Kyzir White", + "score": 14.0 + } + ], + "rank": 4, + "team": "You're being a Kyren", + "total_score": 34.8 + }, + { + "players": [ + { + "game_played": 100, + "name": "Quay Walker", + "score": 15.1 + }, + { + "game_played": 100, + "name": "Robert Spillane", + "score": 18.0 + } + ], + "rank": 5, + "team": "Justys Spilled Seed ", + "total_score": 33.1 + }, + { + "players": [ + { + "game_played": 100, + "name": "T.J. Edwards", + "score": 29.0 + }, + { + "game_played": 100, + "name": "Pete Werner", + "score": 3.9 + } + ], + "rank": 6, + "team": "Punter? I Hardly Know Her", + "total_score": 32.9 + }, + { + "players": [ + { + "game_played": 100, + "name": "Roquan Smith", + "score": 16.5 + }, + { + "game_played": 100, + "name": "Alex Singleton", + "score": 9.5 + } + ], + "rank": 7, + "team": "Maxxy Pats", + "total_score": 26.0 + }, + { + "players": [ + { + "game_played": 100, + "name": "Jordan Hicks", + "score": 10.0 + }, + { + "game_played": 100, + "name": "Dre Greenlaw", + "score": 10.6 + } + ], + "rank": 8, + "team": "Baby got Dak", + "total_score": 20.6 + }, + { + "players": [ + { + "game_played": 100, + "name": "Bobby Okereke", + "score": 14.0 + }, + { + "game_played": 100, + "name": "Tremaine Edmunds", + "score": 1.4 + } + ], + "rank": 9, + "team": "You Hate to See That", + "total_score": 15.4 + }, + { + "players": [ + { + "game_played": 100, + "name": "Terrel Bernard", + "score": 14.6 + }, + { + "game_played": 100, + "name": "Cody Barton", + "score": 0.0 + } + ], + "rank": 10, + "team": "I h8 justin", + "total_score": 14.6 + } + ] + } +}