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

as_players breaks w/o players #11

Open
derek-adair opened this issue May 1, 2020 · 0 comments
Open

as_players breaks w/o players #11

derek-adair opened this issue May 1, 2020 · 0 comments
Labels
bug Something isn't working Test Desired

Comments

@derek-adair
Copy link
Owner

Query.as_players() should return an empty array instead of throwing an exception.

Traceback (most recent call last):
File "", line 1, in
File "/code/nfldb/query.py", line 915, in as_players
q = self._make_join_query(cursor, types.Player)
File "/code/nfldb/query.py", line 764, in _make_join_query
if any(entity._sql_relation_distance(to) > 0 for to in entities):
File "/code/nfldb/query.py", line 764, in
if any(entity._sql_relation_distance(to) > 0 for to in entities):
TypeError: unorderable types: NoneType() > int()

@derek-adair derek-adair added bug Something isn't working Test Desired labels May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Test Desired
Projects
None yet
Development

No branches or pull requests

1 participant