Skip to main content

Questions tagged [buy.html]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
341 views

CS50x finance PSET 9 - quote does not valid ticker symbol expected to find 28.00 and buy page does not have all required elements

I run into some issues with the quoted.html and the buy.html. I suspect the issue is with my index.html but I am not sure why that is the case. For the buy.html page it states that input field shares ...
Student_102345's user avatar
0 votes
1 answer
46 views

PSET 9: C$50 Finance. Why not <input type="number"> instead of text?

From CS50's Problem Set 9 specification: Require that a user input a number of shares, implemented as a text field whose name is shares. Render an apology if the input is not a positive integer. I'm ...
Facundo Lema's user avatar
0 votes
2 answers
693 views

PSET9 Finance: Check50 says Buy doesn't handle fractional/invalid shares, but when I try these things my page does reject them. Why check50 no like?

I have been using some of the html from the cs50 finance example page: https://finance.cs50.net/buy (which is permitted by CS50) I think it may be at the root of the problem. Here's the relevant html ...
cormacl's user avatar
  • 48
0 votes
1 answer
3k views

The view function did not return a valid response. The function either returned None or ended without a return statement

I can't figure out what is wrong in my code My python code: def buy(): """Buy shares of stock""" if request.method == "GET": render_template("buy....
Luana Nunes's user avatar
1 vote
1 answer
2k views

Issue with Check50 PSET7 buy.html :( buy handles valid purchase

:( buy handles valid purchase application raised an exception (see log for details) Log sending POST request to /login sending POST request to /buy exception raised in application: TypeError: '...
AvocadoFire's user avatar
1 vote
1 answer
434 views

How to pre-populate sell() and buy() forms from index - Pset7

I'd like to allow users to buy and sell shares they already own from the index page. I've created a button for this on the index, and I simply want to send the user to the /buy.html or /sell.html page ...
Matt Friend's user avatar
1 vote
1 answer
171 views

I am on pset7 and has created transactions table yet it shows an runtime error...displaying that "no transactions table"...in my finance.db

buy.php in pset7 This is my runtime error.
Suhanshu Patel's user avatar