Questions tagged [portfolio]

The tag has no usage guidance.

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
216 views

CS50 Finance: Index - list indices must be integers or slices, not str

I've been stuck on this for quite some time. I believe that I'm getting back data in the form of a dictionary but can't figure out how to get the information that I need. Error messages that have ...
0
votes
0answers
18 views

Index route_TypeError: 'NoneType' object is not subscriptable

I tried to run the program and encountered this error: My code: @app.route("/") @login_required def index(): """Show portfolio of stocks""" # Selecting ...
0
votes
1answer
320 views

Pset7 Finance Buy Function Internal Server Error

When I try to insert the portfolio values into the SQL database I receive an internal server error, please can someone tell me what I'm doing wrong. if request.method == "POST": # ensure symbol ...
0
votes
0answers
35 views

PSET7 Why can I not select last-child of table?

I am styline portfolio in PSET7. I am trying to select the last row to make it a different background colour but I can't seem to select it? I have tried various different ways but none work. HTML &...
0
votes
1answer
188 views

could someone help me with Portfolios table?

hello guys. I am stuck on this table. Could anyone tell me what how to do this table the right way. I do not know what types should i use for every row
0
votes
0answers
250 views

Pset7 portfolio does not display on index.php

When I open my website and log in, the index.php page shows a table with headers, but no data, even though I think it should be showing the data according to my code. Index.php: <?php // ...
0
votes
1answer
179 views

Illegal String Offset for portfolio

I have finished my portfolio.php and index.php. However, when I try and load the page, I get the error: Illegal string offset 'symbol' in /home/jharvard/vhosts/pset7/templates/portfolio.php on line ...