Questions tagged [finance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

can't get the site to run

i'm almost done with the pset7 and this happend , something has gone wrong and cant figure it out . first i couldn't get the apache50 to start then i found this on web "echo > ~/lib/apache2/log/error....
2
votes
2answers
543 views

Using jinja to render template based on previous url - pset7 finance

For the finance website homepage, I want to render index.html differently based on the previous url. For example, if I logged in I want to render a panel saying 'logged in', but if I registered I want ...
2
votes
3answers
818 views

Problem with query quotes from Yahoo finance

Does anyone recently have problem with this url "http://download.finance.yahoo.com/d/quotes.csv?f=snl1&s={}" in helpers.py of pset7? Before yesterday, the lookup() in helpers.py worked fine but ...
0
votes
1answer
222 views

My CS50 Finance Lookup stopped working on 15 Jun 2019. Is there trouble with the API?

Per the title, the API appears to not work.
0
votes
1answer
119 views

CSS Having No Affect in PSET7

I'm trying to left align text in a table in pset7 and none of the CSS code I write in styles.css is having any affect whatsoever. I even went as far as giving an "id" to an individual "td" element and ...
0
votes
1answer
399 views

When I run my apache50 server at ~/workspace/pset7/public why does login.php files open?

I have a question regarding the working of pset7. I have completed it but now I am scratching my head for this question. When I run my apache50 server like : apache50 start ~/workspace/pset7/public ...
0
votes
0answers
136 views

I am getting an errors in the code no idea how to fix them? [duplicate]

I did a little googling pset7 index TypeError: 'NoneType' object is not subscriptable error Found an error similar in my code. But it doesn't say how to fix it. How do I fix the code? ...
0
votes
1answer
722 views

pset7 finance ':( sell handles valid sale'

if someone would please help me, I've been struggling with this for hours. I am receiving this failure of a check within check50 for pset7 finance: :( sell handles valid sale expected to find "56....
0
votes
1answer
87 views

Pset 8 Finance - check50 error

pset8:finance iam tired of trying what now??
1
vote
5answers
666 views

Cannot get started on pset7

I'm having problems with getting started with pset7. firstly, after following the instructions carefully and downloading the files for pset7. I tried accessing the CS50 Finance page within my IDE but ...
5
votes
1answer
3k views

cs50 finance / pset-7 confused on index() table

I am trying to work on pset7, but am having a problem printing it out to the screen in the table format. I have all the values I need (the values I have are correct), but just can't figure out how to ...
5
votes
3answers
3k views

CS50 Finance/pset8 2019 /check

I am trying to write the script for a form such that if a username is taken, the user is alerted that it is taken, and submission of the form is blocked. If the username then types in the correct ...
1
vote
1answer
638 views

finance 500 internal server error on registration

I've hit a snag when trying to implement register in pset7. Every time I enter a new username, password, and password confirmation, I'm getting a 500 server error. I don't know how to read the log to ...
1
vote
1answer
82 views

Explain the syntax for function render in PSET 7

I don't completely understand this line of render. function render($view, $values = []) I know it passes two arguments, the second is an empty array that you can fill I think? I used this in 'Quote'...
1
vote
3answers
371 views

Problem loading phpMyAdmin

After working on pset7 for about a month now. I have reached a position where I thought that I was making some progress. However, it wasn't to be. When I logged on to my IDE and tried to load ...
1
vote
1answer
622 views

pset7 finance check50 doesn't detect a valid sale despite portfolio updating correctly

I'm puzzled why check50 shows me this error despite my portfolio and SQLite database correctly reflecting the sold shares :( sell handles valid sale expected to find "56.00" in page, but it ...
0
votes
1answer
147 views

pset7 finance register sql

I've been working on the register part of the finance problem and I think I have most of it but I really don't understand how to do the SQL parts of it. I need to learn how to store the username and ...
0
votes
1answer
361 views

How can I debug an internal server error in pset 7 to get past login and register?

Whenever I try to login or register after running "flask run" on pset7, I receive an internal server error. When I run check50, it says that registering a user does not succeed and registration does ...
0
votes
1answer
134 views

Pset8 finance, index not working after migrating to new IDE, why?

My "index" was working fine, but it no longer works and i get the 500 internal server error now, which has been happening after migrating to the new IDE. I does not seem to be my code. Here is what ...
0
votes
0answers
104 views

I want to pass on itertools to jinja2 How do I do that? Is that possible? Anther possibility is I join the tables. But I am finding that difficult

Link where I got info from itertools https://stackoverflow.com/questions/44000727/iterate-over-two-lists-with-different-lengths import itertools some of the code in history application. ...
0
votes
1answer
142 views

pset8 finance check50 fails on “checking that ”56.00“ is in page” even though it is in the page

My sell function redirects to index, and I am able to see the correct stock prices and total value amounts formatted as USD, but for some reason check50 won't pass me on the final test (https://cs50....
0
votes
1answer
29 views

Can a select return nothing without causing an error? How do I create a if condition that returns True if the database is empty?

I posted my code in another post I have made a lot of revisions. Kind of irrelevant but just thought I should mention it if someone goes through my last post. I have a select statement. Lets say my ...
0
votes
2answers
720 views

Pset7 Finance Register - Works fine but error in check50

I'm struggeling with this bug for several days now and don't know how to fix it. I didn't find an answer in all the previous questions. Except my personal touch I finished pset7. If I start flask ...
0
votes
1answer
427 views

RuntimeError: no such column: shares

My error is above. This is weird because it does exist. http://imgur.com/a/kGXsX That is my portfolio table. This is my command: purchase = db.execute("INSERT INTO portfolio (shares, stock, price) ...
0
votes
1answer
700 views

PSET7 - finance check50 error

I'm getting the following error from check50 for Pset7 Finance: Why does check50 fail to login as a registered user?! It works perfectly fine for me to log in. That login function is contained in ...