Questions tagged [buy.py]
The buy.py tag has no usage guidance.
4
questions
0
votes
1answer
101 views
run time error when using joint primary key
I have a joint primary key between two columns (symbol and user_id) and I want to insert the columns the first time and after that update them with the old value + the new value,
Here is my insert ...
0
votes
1answer
28 views
pset7 portfolio shares don't update
For pset7, I have 3 tables (users, transactions, portfolio), in portfolio I want to go in and update the number of shares a user holds in a specific stock if they already own it, or add a new row if ...
0
votes
0answers
245 views
Finance - Buy Function not working
After selecting Buy, when I submit form after filling stock symbol and quantity. The page just hangs and do not respond. Ideally it should take me to index page after buying the stock.
Below is the ...
0
votes
1answer
1k views
pset7 finance buy sqlalchemy.exc.ArgumentError: This text() construct doesn't define a bound parameter named 'id
What is it? I received error:
"sqlalchemy.exc.ArgumentError: This text() construct doesn't define a bound parameter named 'id'
@app.route("/buy", methods=["GET", "POST"])
@login_required
def buy():
"...