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

nfldb-update simulate #228

Open
mrg1999 opened this issue Feb 17, 2017 · 2 comments
Open

nfldb-update simulate #228

mrg1999 opened this issue Feb 17, 2017 · 2 comments

Comments

@mrg1999
Copy link

mrg1999 commented Feb 17, 2017

Can someone please explain the proper format to use nfldb-update --simulate
Thanks!

@mrg1999
Copy link
Author

mrg1999 commented Feb 19, 2017

From what I can find it looks like it should be:
nfldb-update --simulate 2017010106
But I get the following error:

Traceback (most recent call last):
  File "nfldb-update", line 38, in <module>
    nfldb.update.run(**vars(args))
  File "C:\Python27\lib\site-packages\nfldb\update.py", line 460, in run
    games = sorted(q.as_games(), key=lambda g: g.gsis_id)
  File "C:\Python27\lib\site-packages\nfldb\query.py", line 793, in as_games
    q = self._make_join_query(cursor, types.Game)
  File "C:\Python27\lib\site-packages\nfldb\query.py", line 762, in _make_join_query
    'where': sql.ands(self._sql_where(cursor)),
  File "C:\Python27\lib\site-packages\nfldb\query.py", line 1031, in _sql_where
    aliases=aliases, aggregate=aggregate)
  File "C:\Python27\lib\site-packages\nfldb\query.py", line 292, in _disjunctions
    ds.append(' AND '.join('(%s)' % sql(c) for c in conjuncts))
  File "C:\Python27\lib\site-packages\nfldb\query.py", line 292, in <genexpr>
    ds.append(' AND '.join('(%s)' % sql(c) for c in conjuncts))
  File "C:\Python27\lib\site-packages\nfldb\query.py", line 289, in sql
    return c._sql_where(cursor, aliases=aliases, aggregate=aggregate)
  File "C:\Python27\lib\site-packages\nfldb\query.py", line 352, in _sql_where
    'Disjunctions must use "=" for column "%s"' % field
AssertionError: Disjunctions must use "=" for column "game.gsis_id"

@farazirfan47
Copy link

Did you solve that problem ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants