Skip to content

Instantly share code, notes, and snippets.

/application.py Secret

Created March 13, 2017 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0bc6c50a5f399ed1a672a8a345cbc395 to your computer and use it in GitHub Desktop.
Save anonymous/0bc6c50a5f399ed1a672a8a345cbc395 to your computer and use it in GitHub Desktop.
application.py - shared from CS50 IDE
db.execute("INSERT INTO tracker (symbol, shares, cash, id, price) \
VALUES(:symbol, :shares, :cash, :id, :price)", \
symbol=rows["symbol"], shares=shares, cash=balance[0]["cash"], id=session["user_id"], \
price=rows["price"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment