Questions tagged [financepset9]

The tag has no usage guidance.

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

CS50 PSET 9 Finance "sell handles valid sale: expected to find "56.00" in page, but it wasn't found"

I already looked through every post I could find on this topic but nothing seemed to work for me yet. I have tried to recreate the error by: creating a new account, buying 4 shares of 'AAAA', then ...
scrypter's user avatar
0 votes
1 answer
71 views

PSET 9 Finance :( sell handles valid sale

I checked out the other questions that had the same problem, but none of the solutions applied to my problem, so I decided to make my own question. Below is my sell html file with jinja {% extends &...
ChubDubDub's user avatar
0 votes
1 answer
41 views

PS9 Finance does not appear in Gradebook as done

Yesterday (around 10 hours prior to this post) I successfully completed the Problem Set 9 Finance as part of the CS50 Introduction to Computer Science. I have passed all the tests multiple times, ...
superpav's user avatar
0 votes
0 answers
64 views

CS50 Finance Index

Hello can someone please check my code. I keep getting going round and round changing stuff but its alway a keyerror: symbol or something else. Thank you @app.route("/") @login_required def ...
Nana's user avatar
  • 1
0 votes
1 answer
50 views

Could someone take a look at my finance index? I'm going round in circles and can't find the problem. Everything appears as it should when I test

It's failing on check50 :( buy handles valid purchase expected to find "112.00" in page, but it wasn't found it passes all the check50 tests beforehand, and can't check any of the other ...
temiboy's user avatar
  • 11
0 votes
0 answers
43 views

Apology not rendering a picture - W9 CS50 Finance

When I do something that should call the apology function, (i.e registering without a password) my site renders apology.html and the correct error code is shown. However the picture doesn't get ...
Fergus Argyll's user avatar
0 votes
1 answer
65 views

Check50 marks my "Quote" as if not functioning properly despite looking identical to the staffs solution

I thought I had finished pset9 and had check50 have a quick look at it and it repeatedly gave me the output: :( quote handles valid ticker symbol expected to find "28.00" in page, but it ...
Ganymede's user avatar
0 votes
0 answers
39 views

can you guys please help me and find out what is wrong with my code? i have been working on this for about 5 hours and cant find what's wrong with it

import os from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from werkzeug.security import check_password_hash, ...
Psystrike's user avatar
0 votes
0 answers
48 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
71 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
82 views

Is there something wrong with my code for finance?

From app.py: @app.route("/quote", methods=["GET", "POST"]) @login_required def quote(): """Get stock quote.""" if request.method == &...
Mo'men's user avatar
  • 1
1 vote
0 answers
103 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
114 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
477 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
1 answer
104 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
48 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
1 answer
283 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
188 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
143 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
1k 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
390 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
524 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