diff --git a/__pycache__/app.cpython-313.pyc b/__pycache__/app.cpython-313.pyc index 6b5d54a..c56d9c3 100644 Binary files a/__pycache__/app.cpython-313.pyc and b/__pycache__/app.cpython-313.pyc differ diff --git a/__pycache__/models.cpython-313.pyc b/__pycache__/models.cpython-313.pyc index 8822d0c..4e4b009 100644 Binary files a/__pycache__/models.cpython-313.pyc and b/__pycache__/models.cpython-313.pyc differ diff --git a/__pycache__/seed.cpython-313.pyc b/__pycache__/seed.cpython-313.pyc new file mode 100644 index 0000000..4c9bade Binary files /dev/null and b/__pycache__/seed.cpython-313.pyc differ diff --git a/app.py b/app.py index 736775d..051882c 100644 --- a/app.py +++ b/app.py @@ -32,11 +32,11 @@ def create_app(): with app.app_context(): import models - from models import User + from models import User, MatchParticipant try: # Check if the database schema is up to date by testing a query - # that uses all model columns - db.session.execute(text('SELECT games FROM users LIMIT 1')) + # that uses all model columns including team_side for match participants + db.session.execute(text('SELECT games, team_side FROM match_participants LIMIT 1')) db.create_all() except Exception: # If there's a schema mismatch, drop and recreate all tables diff --git a/c b/c deleted file mode 100644 index f9702d0..0000000 --- a/c +++ /dev/null @@ -1,147 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}My Profile - TryoutPro{% endblock %} -{% block page_title %}My Profile{% endblock %} -{% block breadcrumb %}{% endblock %} - -{% block header_actions %} -
Member since {% if user.created_at %}{{ user.created_at.strftime('%B %Y') }}{% else %}Unknown{% endif %}
-Tryouts Registered
-Evaluations Received
-Team Assignments
-Evaluations Given
-No statistics available for this role.
- {% endif %} -