Skip to content

Instantly share code, notes, and snippets.

@JoeNoPhoto
Created October 31, 2017 17:59
Show Gist options
  • Save JoeNoPhoto/c3817a1ff4124ee7f382b1f2fcb470c4 to your computer and use it in GitHub Desktop.
Save JoeNoPhoto/c3817a1ff4124ee7f382b1f2fcb470c4 to your computer and use it in GitHub Desktop.
# /Users/JoeNoPhoto/Virtualenvs/nfldb/lib/python2.7/site-packages/nflgame/update_players.py:179:
last_name, first_name = map(lambda s: s.strip(), name.split(','))[:2]
#> psql nfldb -U nfldb
insert into team values('JAX','Jacksonville', 'Jaguars');
insert into team values('LAC','Los Angeles', 'Chargers');
#> nfldb-update
#> nflgame-update-players
@JoeNoPhoto
Copy link
Author

When starting up a new project in nfldb, you've gotta do these couple things before you can update or it'll error out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment