Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

racing team frontend: consider narrowing search for localuser by email address #629

Open
louking opened this issue Feb 14, 2025 · 0 comments

Comments

@louking
Copy link
Owner

louking commented Feb 14, 2025

Message type:       ERROR
Location:           /app/members/views/frontend/racingteam_frontend.py:408
Module:             racingteam_frontend
Function:           get
Time:               2025-02-13 14:58:10,628
User:              *********************

Message:

Traceback (most recent call last):
  File "/app/members/views/frontend/racingteam_frontend.py", line 399, in get
    localuser = LocalUser.query.filter_by(name=name, active=True, **localinterest_query_params()).one()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2865, in one
    return self._iter().one()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/result.py", line 1417, in one
    return self._only_one_row(
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sqlalchemy/engine/result.py", line 614, in _only_one_row
    raise exc.MultipleResultsFound(
sqlalchemy.exc.MultipleResultsFound: Multiple rows were found when exactly one was required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant