Questions tagged [financepset9]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

FINANCE - PSET9

I'm having an issue with pset9-finance, as I keep encoutering this error message: expected to find 112.00 in page, but it wasn't found here's my /buy code: @app.route("/buy", methods=[&...
lmgama's user avatar
  • 1
0 votes
1 answer
27 views

CS50 pset9: Why does 'SELECT last_insert_rowid()' return 0 instead of the expected value when using CS50 SQL library in Flask?

symbol_id = db.execute("SELECT symbol_id FROM symbols WHERE symbol = ?", quote["symbol"]) if not symbol_id: db.execute("INSERT INTO symbols (symbol) VALUES ...
khalildouis's user avatar
0 votes
1 answer
68 views

Is there something wrong with my code for finance?

@app.route("/quote", methods=["GET", "POST"]) @login_required def quote(): """Get stock quote.""" if request.method == "POST": # ...
Mo'men's user avatar
  • 1
0 votes
0 answers
33 views

buy handles valid purchase expected to find "112.00" in page, but it wasn't found

What am I missing?? from other posts I have read this error typically results from formatting issues. I believe in my code the place to use USD() is on the index page, but it's not resolving the error....
weary-explanation-91's user avatar
0 votes
1 answer
57 views

Pset 9 error in check 50 :( buy handles valid purchase application raised an exception

HELP :) .. I manages to fix most of my errors but am stuck with the this one .. :( buy handles valid purchase application raised an exception My code is below: Any suggestions please? @app.route(&...
Melissa Borg Sperandeo's user avatar
0 votes
1 answer
221 views

expected to find "112.00" in page, but it wasn't found on PSET 9 - FINANCE

it is my first time asking here as I've tried various methods and solutions but still unable to solve this problem. I always get stuck on "buy handles valid purchase - expected to find "112....
KiruFlan's user avatar
0 votes
0 answers
167 views

Problem of C$50 finance in accessing IEX

I'm now working on the problem set 9 Finance. When I came into the "Quote" Section, I found that my lookup function always returned None. So I tried to access the original url like [https://...
Jason's user avatar
  • 1
0 votes
1 answer
78 views

CS50 PS9 finance :( buy exception raised in application: TypeError: '<' not supported between instances of 'str' and 'float'

@app.route("/buy", methods=["GET", "POST"]) @login_required def buy(): """Buy shares of stock""" if request.method == "GET": ...
Karl Kuehn's user avatar
0 votes
1 answer
37 views

Pset9 Register function not working

Working through Pset9 and every time I try testing my register function I get back an image of a grumpy cat and a 403: Invalid username and/or password message. This is my code for the register ...
getsendy's user avatar
0 votes
0 answers
11 views

"Finance" web app check50 error

I finalized pset9 Finance web app. It works fine locally but when I try to check with "check50 cs50/problems/2022/x/finance" it prints the traceback below: File "/usr/local/bin/check50&...
baytark's user avatar
0 votes
1 answer
157 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
147 views

Finance index.html is not displaying any data at all

I am stuck on index() in finance. I have a working SQL function which compiles all the transactions made by the user and sums the shares of all the repeating stocks - ie creating a list of owned ...
GMplayer210's user avatar
0 votes
1 answer
123 views

my cs50 finance buy do not update in in the portfolio

i have tried so many options but to no avail pls below are the code i wrote.`@app.route("/buy", methods=["GET", "POST"]) @login_required def buy(): """Buy ...
amaka's user avatar
  • 15
0 votes
1 answer
929 views

Lab 9: Birthdays - odd behaviour from delete button

I got Lab 9 up and running per spec and am trying to implement a 'delete' button for each row. My current code works fine to delete each row in the table except for the first row (id = 1). When I ...
danieljmoore3's user avatar
0 votes
1 answer
329 views

ValueError: UNIQUE constraint failed: on finance pset9, could someone point me in the right direction on which values should be UNIQUE from my table?

Could someone help me figure out which values should I define as UNIQUE? I'm getting the ValueError: UNIQUE constraint failed: compras.id beacuase of the way I created my table for keeping tab of who ...
Roger Roger's user avatar
0 votes
1 answer
256 views

PSET 9 Finance checking that "56.00" is in page

I've been trying to solve this issue for hours and every time I run the code I get the error: ****:( sell handles valid sale Cause expected to find "56.00" in page, but it wasn't found Log ...
Kaii's user avatar
  • 1