Questions tagged [financepset9]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 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 ...
user avatar
0 votes
0 answers
51 views

CS50x 2022 PSet 9 Finance - check50 failing

I'm currently doing PSet 9, Finance, for CS50x 2022. The web app works fine on my own computer, but when I run it using check50, it is unable to register the user (because of a NoneType object not ...
user avatar
0 votes
1 answer
37 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 ...
user avatar
  • 15
0 votes
1 answer
217 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 ...
user avatar
0 votes
0 answers
71 views

PSET9 finance 'buy handles valid purchase error' checking that "112.00" is in page

Hi there I am stuck on PSET9 Finance. When I run check50 I get this error. I think this is when the page is getting redirected to the index page. I have added my python route for buy below and index ...
user avatar
0 votes
1 answer
92 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 ...
user avatar
0 votes
0 answers
39 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 ...
user avatar
  • 1
0 votes
0 answers
23 views

PSET9 Finance - Check50 Failing on login - logging in as registered user succceeds -NameError: name 'get_symbol'

@app.route("/") @login_required def index(): """Show portfolio of stocks""" print("before") # Store the user_id. user_id = session["user_id"]...
user avatar