Рет қаралды 55,328
00:00 Intro, 01:48 Register, 06:11 Quote, 07:47 Buy, 10:35 SQL Update, 12:22 Index, 15:58 Sell, 19:07 History
Welcome to This is CS50 Week 9 Problem Set - Finance. This tutorial will cover how to complete CS50x Finance.
Don't forget to export API_KEY=value where "value" is your exact APK key starting with pk_. this is run from terminal $.
Then cd finance. You'll need 'flask run' and Ctrl+C will stop flask from running.
sqlite3 finance.db to alter SQL and .exit to return to /finance then back in to flask run.
Happy Watching!
NOTE! - to PASS the CS50 check, you NEED to implement the logic I left out in the def index portion of the app.py - you MUST have shares and totals down to two decimal points to clear the check. You may want to use the 'usd' function and or some 'float' logic. There are also other ways to solve this. Good Luck!