Questions tagged [quote]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
112 views

Pset7 - Quote always returning apology

So, I'm struggling with pset7 a lot (mostly because I've never programmed before either =/) now I'm on quote and it's always rendering an apology after I fill in the form. I can't quite figure out ...
0
votes
1answer
165 views

PSET 9 Quote function not working correctly

Lookup function always returns "None". Weirdly the same code produced correct results yesterday but as of today it stopped. Any thoughts why? The code for the quoted.html and application.py ...
0
votes
0answers
701 views

Pset7 buy and quote do not pass check50

I ran my code through check50 and it didn't clear the following 2 checks: :( quote handles valid ticker symbol expected to find "28.00" in page, but it wasn't found :( buy handles valid purchase ...
0
votes
1answer
1k views

Pset7 finance quote problem

I'm trying to get the stocks by quote and it worked just fine a week ago but it suddenly stopped working. Can someone please explain me what has changed and how I should alter my code to get it ...
0
votes
1answer
135 views

pset7 cs50 quote not working neither displaying the apology

@app.route("/quote", methods=["GET", "POST"]) @login_required def quote(): if request =="POST": rows = lookup(request.form.get("quote")) if not rows: return apology("Invalid ...
0
votes
0answers
56 views

pset7: Quote not rendering apology

I am having issues with rendering apology if symbol isn't entered. What am I doing wrong? def quote(): """Get stock quote.""" if request.method == "POST": if not request.form.get("...
0
votes
2answers
166 views

Help on QUOTE.py PSET7

Please find the images below. When i try to execute quote, it renders me the following error shown in the 2nd image.
0
votes
1answer
105 views

Pset7 Quote: Form does not display, straight to apology

I cannot figure out why my quote form does not display. It jumps straight to the apology function and never prompts the user for a stock symbol. HTML code from quote.html {% extends "layout.html" %} ...
0
votes
0answers
49 views

pset7 Cannot redeclare apologize()

Every time I try to open quote section after writing the necessary code for it, I get the following error. "Fatal error: Cannot redeclare apologize() (previously declared in /home/ubuntu/workspace/...
0
votes
1answer
217 views

Pset7, I cannot display result of quote

Pset7, I cannot display result of quote. Am I misunderstanding concept of render function? Quote form is displayed, just not result... Could anyone gives me any advises, please? quote: if ($_SERVER["...
0
votes
1answer
177 views

Pset7,Quote,the code gives an error-Undefined variable: message in /home/ubuntu/workspace/pset7/views/quote_output.php on line 1.Please Explain

<?php // configuration require("../includes/config.php"); if ($_SERVER["REQUEST_METHOD"] == "GET") { // else render form render("quote_form.php", ["title" => ...