Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
1
answer
84
views
Pset7 finance, after I run buy function, portfolio table updated check 50 fails and I get 40...
So I am thinking the error is in linking buy code to my index code so my buy function will show in index.html. but I dont know how. Below are my code for index.html. … and buy
@app.route("/")
@login_required
def index():
"""Show portfolio of stocks"""
rows_pt = db.execute("SELECT * FROM portfolio WHERE id = :id",id = session["user_id"])
if rows_pt == []: …
0
votes
1
answer
750
views
pset7 finance register and index check50 error
However when i run check50, it gets following errors
The errors might come from my index code. I am not sure. Below are my code for register and index. Any suggestion would be much appreciated. … :
@app.route("/")
@login_required
def index():
"""Show portfolio of stocks"""
rows_pt = db.execute("SELECT * FROM portfolio WHERE id = :id",id = session["user_id"])
if rows_pt == []:
cash_b = …