Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1cdccf3
Added folders
Aug 8, 2025
aaf6521
creates and inserts
vschac Aug 8, 2025
e3a2035
Added some new files
Aug 8, 2025
3dd861c
Merge branch 'main' into frank-branch
Aug 8, 2025
d6dcc7a
Create season_summaries.routes.py
chapman-w Aug 8, 2025
47f9efa
Updated Gameplans Endpoint
Aug 8, 2025
cc9fee0
added use and removed failing check
vschac Aug 8, 2025
7f19bea
Player comparisons route
chapman-w Aug 10, 2025
e82cb31
Created data_routes.py
chapman-w Aug 10, 2025
7b8f514
Add comprehensive player and team API routes
dishantbudhi Aug 11, 2025
67548a0
Merge pull request #2 from dishantbudhi/dishant-branch
dishantbudhi Aug 11, 2025
a461023
Removed duplicate player-matchups
vschac Aug 11, 2025
8e47af3
Creating template for analytics based on players_routes.py
andrewdubanowitz Aug 11, 2025
404bc78
Create admin_routes.py
andrewdubanowitz Aug 11, 2025
f495a1b
Merge pull request #3 from dishantbudhi/drew-branch
andrewdubanowitz Aug 11, 2025
5e52587
added rest entries and games
vschac Aug 11, 2025
c451e90
Update admin_routes.py
andrewdubanowitz Aug 11, 2025
63c4031
Merge pull request #4 from dishantbudhi/drew-branch
andrewdubanowitz Aug 11, 2025
7f529c5
made updates to backend folder
dishantbudhi Aug 11, 2025
6c0f99c
Merge pull request #5 from dishantbudhi/dishant-edit2
dishantbudhi Aug 11, 2025
11e730f
deleted data_routes.py
dishantbudhi Aug 11, 2025
bfe6e97
Merge pull request #6 from dishantbudhi/dishant-edit2
dishantbudhi Aug 11, 2025
9659817
changed file name to avoid error
vschac Aug 11, 2025
40326ad
home and about page (still needs franks pic)
vschac Aug 11, 2025
fabd32f
Refactor user login and update navigation
dishantbudhi Aug 11, 2025
a02d44e
Merge remote-tracking branch 'origin/dishant'
chapman-w Aug 11, 2025
ea94c60
Merge branch 'main' into frank-branch
Aug 11, 2025
ee29a09
Updated gameplan routes
Aug 11, 2025
c86c8ab
Added Frank Photo
Aug 11, 2025
cd53b04
Merge pull request #8 from dishantbudhi/frank-branch
dishantbudhi Aug 11, 2025
2afb8c2
created data engineer home page
chapman-w Aug 12, 2025
023c751
Update page routing and remove test compose file
dishantbudhi Aug 12, 2025
5e90717
Refactor and clean up API routes and schema
dishantbudhi Aug 12, 2025
dc40b2f
Merge pull request #9 from dishantbudhi/dishant
dishantbudhi Aug 12, 2025
1f8071d
general manager pages
andrewdubanowitz Aug 12, 2025
8c46329
delete pages
andrewdubanowitz Aug 12, 2025
5133da4
changes to gm screens
andrewdubanowitz Aug 13, 2025
ab52ae0
Delete 41_Player_Progress.py
andrewdubanowitz Aug 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
790 changes: 790 additions & 0 deletions api/backend/admin/admin_routes.py

Large diffs are not rendered by default.

440 changes: 440 additions & 0 deletions api/backend/analytics/analytics_routes.py

Large diffs are not rendered by default.

83 changes: 0 additions & 83 deletions api/backend/customers/customer_routes.py

This file was deleted.

1 change: 0 additions & 1 deletion api/backend/db_connection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from flaskext.mysql import MySQL
from pymysql import cursors


# the parameter instructs the connection to return data
# as a dictionary object.
db = MySQL(cursorclass=cursors.DictCursor)
26 changes: 26 additions & 0 deletions api/backend/games/game_plan_routes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

from flask import Blueprint, request, jsonify, make_response, current_app, redirect, url_for
import json
from backend.db_connection import db

gameplans = Blueprint('gameplans', __name__)

# ------------------------------------------------------------
# /gameplans returns all rows from the GamePlan table
@gameplans.route('/gameplans', methods=['GET'])
def get_all_gameplans():
current_app.logger.info('GET /gameplans handler')

try:
cursor = current_app.mysql.connection.cursor(dictionary=True)
cursor.execute("SELECT * FROM GamePlan;")
gameplans = cursor.fetchall()
cursor.close()

response = make_response(jsonify(gameplans))
response.status_code = 200
return response

except Exception as e:
current_app.logger.error(f"Error fetching gameplans: {e}")
return make_response({"error": "Internal Server Error - Frank"}, 500)
Loading