Automated issue created from exception logger.
Traceback (most recent call last):
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context
self.dialect.do_execute(
~~~~~~~~~~~~~~~~~~~~~~~^
cursor, str_statement, effective_parameters, context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/default.py", line 952, in do_execute
cursor.execute(statement, parameters)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: no such column: tournaments.creation_token
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/manish/Documents/SimCricketX/routes/stats_routes.py", line 218, in compare_players_page
tournaments = Tournament.query.filter_by(user_id=current_user.id).all()
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/orm/query.py", line 2711, in all
return self._iter().all() # type: ignore
~~~~~~~~~~^^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/orm/query.py", line 2864, in _iter
result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
~~~~~~~~~~~~~~~~~~~~^
statement,
^^^^^^^^^^
params,
^^^^^^^
execution_options={"_sa_orm_load_options": self.load_options},
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/orm/session.py", line 2373, in execute
return self._execute_internal(
~~~~~~~~~~~~~~~~~~~~~~^
statement,
^^^^^^^^^^
...<4 lines>...
_add_event=_add_event,
^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/orm/session.py", line 2271, in _execute_internal
result: Result[Any] = compile_state_cls.orm_execute_statement(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self,
^^^^^
...<4 lines>...
conn,
^^^^^
)
^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/orm/context.py", line 306, in orm_execute_statement
result = conn.execute(
statement, params or {}, execution_options=execution_options
)
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 1421, in execute
return meth(
self,
distilled_parameters,
execution_options or NO_OPTIONS,
)
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/sql/elements.py", line 526, in _execute_on_connection
return connection._execute_clauseelement(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self, distilled_params, execution_options
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 1643, in _execute_clauseelement
ret = self._execute_context(
dialect,
...<8 lines>...
cache_hit=cache_hit,
)
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 1848, in _execute_context
return self._exec_single_context(
~~~~~~~~~~~~~~~~~~~~~~~~~^
dialect, context, statement, parameters
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 1988, in _exec_single_context
self._handle_dbapi_exception(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
e, str_statement, effective_parameters, cursor, context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 2365, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context
self.dialect.do_execute(
~~~~~~~~~~~~~~~~~~~~~~~^
cursor, str_statement, effective_parameters, context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/manish/Documents/SimCricketX/.venv/lib/python3.14/site-packages/sqlalchemy/engine/default.py", line 952, in do_execute
cursor.execute(statement, parameters)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: tournaments.creation_token
[SQL: SELECT tournaments.id AS tournaments_id, tournaments.user_i
Automated issue created from exception logger.
OperationalError(sqlite3.OperationalError) no such column: tournaments.creation_token [SQL: SELECT tournaments.id AS tournaments_id, tournaments.user_id AS tournaments_user_id, tournaments.name AS tournaments_name, tournaments.status AS tournaments_status, tournaments.created_at AS tournaments_created_at, tournaments.creation_token AS tournaments_creation_token, tournaments.mode AS tournaments_mode, tournaments.format_type AS tournaments_format_type, tournaments.current_stage AS tournaments_current_stage, tournerrorbackend<email>ae097b579a4c2026-09-18 21:37:04.092839Context
{ "path": "/compare-players", "method": "GET", "endpoint": "compare_players_page", "remote_addr": "<ip>" }Traceback