Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 15032

For problem set 7 (CS50 Finance)

2 votes

should I create a table for every user on buy, cs50 finance

I suggest creating a table, called, for example, transactions. In the table, there are columns: user_id, name of the company, quantity of shares, price of 1 share, date. In this way I will keep transa …
wingedRuslan's user avatar
1 vote

How to display python list in index.html ? finance - index.html

Solution {% for stock in stocks %} <tr> <td> {{ stock.symbol }} </td> <td> {{ stock.name }} </td> <td> {{ stock.quantity }} </td> <td> {{ stock …
wingedRuslan's user avatar
1 vote
Accepted

pset7 finance python Login question

I do not think, that the way how you get hash of the password is correct. Try to pass to the function a value, that the user entered, but not the string "password" hash = pwd_context.encrypt(request …
wingedRuslan's user avatar
0 votes
1 answer
175 views

How to start id count from 1 after deleting all records in the table? pset7-finance

I had some records inside my table "users", then I deleted all records (SQL -DELETE FROM "users" WHERE ("cash" = 10000)). And now, when I add a new record (a new user) the id count continues to grow, …
wingedRuslan's user avatar
1 vote
1 answer
3k views

How to display python list in index.html ? finance - index.html

I need is to display the list below in index.html file. print (stock_info) [{'symbol': 'AAPL', 'name': 'Apple Inc.', 'price': 145.16, 'quantity': 20}, {'symbol': 'AMZN', 'nam …
wingedRuslan's user avatar
0 votes
1 answer
33 views

How to disable a button after it was clicked ? finance-pset7

I would like to add a button (Give me $12.000) to my index.html. The purpose is that a user can only once receive additional cash = 12000 by clicking that button. After a click, I do not want to disp …
wingedRuslan's user avatar
1 vote
2 answers
849 views

Password for phpLiteAdmin

I am requested to enter a password for phpLiteAdmin. I was following steps from the lecture, intro to phpliteadmin. After I inserted a new row ("name", "dorm") into the table registrants, I got thi …
wingedRuslan's user avatar
1 vote
1 answer
73 views

Why do I get a wrong html file after executing a quote function? pset finance

I am implementing a quote function in application.py. But the result is ridiculous. After I enter a symbol to search for, I get an apology.html(saying Missing Username!), but this apology.html with th …
wingedRuslan's user avatar
1 vote

How to disable a table (portfolio) in index.html?

{% block main %} {% if empty == "False" %} // TODO Somethig <p>NOOO</p> {% endif %} {% endblock %} Easy fix I was trying to to pass a variable empty as a parameter wit …
wingedRuslan's user avatar
1 vote
1 answer
51 views

How to disable a table (portfolio) in index.html?

If there are no records in my portfolio, I do not want to show the table in index.html So, I tried as a parameter to pass a variable empty with value to index.html, where it was checked {% if {{ emp …
wingedRuslan's user avatar