Cs50 finance register. Stack Exchange Network. I don't know what these things do and what to type in these things. Visit Stack Exchange CS50 Finance (week 9 problem set) Check 50 Fails despite program working fine, please help. In the console, I can see the SELECT query running but I do not In the latest CS50 - pset7 - CS50 Finance, it is advised to use generate_password_hash instead of pwd_context. I was able to figure out the POST and /register, but I am confused on how to use INSERT a new user into users. expected status code 200, but got 400:) registration with an empty field fails C$50 Finance: Log In Log In CS50(2021) - Finance. apps import custom_app_context as pwd_context at the top. Visit Stack Exchange There is no way to get rid of the following check50 error: :( logging in as registered user succeeds application raised an exception (see the log for more details) I found through googling that in . Youtube Video . Read through the implementation of login first. my cs50 finance buy do not update in in the portfolio. Portfolio/CS50 Finance. Office Hours: Welcome to Queen of the Most Holy Rosary in Roosevelt, NY. html page to seemingly work but the json query and transfer to quoted. org. Members Online • [deleted] ADMIN MOD Pset8 Finance - register function returns "invalid username and/or password" C$50 Finance Hi, I am having problems with the register function in C$50 finance. Any help would be appreciated. I would be very appreciative of any help. This is extra frustrating, because the webapp works 100% correct, when i use it. Thank you. Visit Stack Exchange Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Explore a wide range of online courses from Harvard, MIT, and more on edX. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Have you implemented index yet, or does it still return an apology? If the latter, that would be a problem for check50. I inserted the When I do try to register a user, I get a 403 username invalid error which means I think it is running the login function. I´ve read as many threads I could find about the same issue, but none of the answers C$50 Finance: Log In - edX Log In In this video you can see an example solution of the buy page of C$50 Finance from Week 9 at HarvardX. CS50-finance is stocks query website with register, login, query, buy, sell, and history functions using yfinance api by python and flask framework C$50 Finance is a web application built with Flask that allows users to manage their stock portfolios. Be sure it has that exact filename! If you upload a file with a different You signed in with another tab or window. CS50(2021) – Finance. Notice how it uses db. ; Click Problem Set 9: Finance. SQL3 SUM troubles. I also get a 302, which I'm unsure if is relevant. O usuário deve fornecer uma entrada de username por meio de um text field, no qual o name é username. :( registration rejects duplicate username – expected status code 200, but got 400 . and flask-session has alredy the api-key . Require that a user input a username, implemented as a text field To the Roosevelt Union Free School District Central Administration page! Within you will find the departments from which all Central Office functions and operations extend from. Something isn't working right, and even after going over it with cs50's ai it's telling me to seek advice from a cs50 forum =/ This is my code meets all the requirements for the register function and register. Well there are some things that I found in finance. RETURNS: for SELECT, a list of dict objects, each of which represents a row in the result set Via CS50's file browser, double-click finance. Visit Stack Exchange If the database you are looking at has an empty users table AND the program is giving "UNIQUE constraint failed", the occam's razor conclusion is that application. sending POST request to /login checking that status code 200 is returned Complete the implementation of register in such a way that it allows a user to register for an account via a form. Caso o campo seja deixado em branco ou o usuário já exista, deve retornar uma mensagem; Deve ter como input também uma senha, implemente isso You’re about to implement C$50 Finance, a web app via which you can manage portfolios of stocks. db Finance was the hardest for me to start but once I did I was done in a day. BTW, you hash the word "password", not the password. - hongbo-wei/cs50-finance Hey guys, i made Finance work after long hours of blood, sweat and (almost) tears. Click Problem Set 9: Finance. Demanding, but definitely doable. :( registration rejects duplicate username - expected status code 200, but got 400 C$50 Finance Hello, As I guess many of us on CS50, I´m new to programming, and I´ve been stuck for 2 weeks in the registration duplicate issue of Pset9 Finance, so after trying many things and a careful reading of every single similar issue I could find on Reddit, I decided Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company REALLY struggling with cs50 finance project :(( please help . CS50 is the quintessential Harvard (and Yale!) course. Any help is I have made the register page. C$50 Finance is a a website via which users can "buy" and "sell" stocks (similar to a practice trading account). io/check50/b869dd348b3808c274a3117001b40af8610e28c7. Complete the implementation of quote in such a way that it allows a user to look up a stock’s current price. execute (from CS50’s library) to query finance. Allows users to login and register with SQL. However, check50 throws a 400 error for Post request on /register. Users can also view their stock portfolio transaction history. Members Online • Lolz128 . Perhaps you meant to hash the variable password. It is hashing the string literal "password". Visit Stack Exchange Thereafter are a whole bunch of routes, only two of which are fully implemented: login and logout. Contribute to Ahuanmarca/Finance-Flask development by creating an account on GitHub. cs50 Saved searches Use saved searches to filter your results more quickly Hey guys, i made Finance work after long hours of blood, sweat and (almost) tears. It does not check if the username exists yet but should work fine For example, one time, logging in as registered user succeeds, but the next time (without changing the code), it fails. For a verified certificate from edX, register at cs50. py is not connecting the the same database as the one being viewed. Announcements So far, I have finished buy, quote, register, and the index functions. import datetime from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from werkzeug. Members Online • deadkoolx. I inserted the Download your finance. If str is an INSERT, and the table into which data was inserted contains an autoincrementing PRIMARY KEY, then execute returns the value of the newly inserted row’s primary key. ADMIN MOD PSET 9 Finance - check50 Failing - logging in as registered user succceeds - IndexError: list index out of range . I'm not worried about comparing usernames or passwords just yet as that's another mountain of its own to climb. Visit Stack Exchange 🎓 HarvardX's CS50 course - finance pset solution. Find a working version and compare your work with the complete version up Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Contribute to rafa763/cs50-finance development by creating an account on GitHub. - Linh012/cs50-finance I´m new to programming, doing CS50 and currently struggling to complete the Pset9 - Finance, version from 2021. User must input username. Members Online • kraptrainkrunch . py, pwd_context is defined by from passlib. py (lots of routing, logics, and Sqlite3 QUERIES) Design an orders table to keep track of all stock transactions by all users. execute command should work but no matter what I try it simply does not write it! No other errors, and the page progresses to redirect as it should. Please rectify my C$50 Finance/register. r/cs50 A chip A close button. What to do when IEX cloud API stopped their free trial. Email: reception @qtmhr. DinoCoderSaurus DinoCoderSaurus. On this page Implement a website via which users can “buy” and “sell” stocks (with real-time share prices, user account database, cookie session) - ngnnah/cs50-pset9-finance Allows users to login and register with SQL. Finance: UNIQUE constraint failed: users. Log In / Sign Up; Advertise on A focused topic, but broadly applicable skills. CS50 pset8 finance buy. I'm having 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. The problem with my code was that i was using the Names of the stocks after using lookup and not the Symbols. by the way CS50x is the Introduction to the intellectual enterprises I'm currently doing PSet 9, Finance, for CS50x 2022. 28. MrTxo. Interested in a verified certificate, a professional certificate, or transfer credit and accreditation? Select the “Individual” account type, then enter your name, email address, and a password, and click “Create account”. ; Go to CS50’s Gradescope page. 6k 2 2 gold badges 11 11 silver badges 31 31 bronze badges. html returns a 500 "In To run the app, when you are in CS50-finance directory, enter this command in the terminal: flask run I hope you enjoyed how to stocks' exchange web application using flask. My web application solution to CS50x's Finance Problem Set 2021. Since I completed the Register part with referring the sample in the video, I have been struck in Quote Part for 3days. How to Take this Course. Require that a user input a Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site This hash = generate_password_hash("password") is a problem. I am able to open the Please note - This form is for registering RETURNING students GRADES Pre-K - 12, who are CURRENTLY ENROLLED in the Roosevelt Union Free School District REGARDLESS OF register. py (lots of routing, logics, and Sqlite3 QUERIES) Design an orders table to keep track of I am currently doing the register function for Finance in cs50. In register implementation, says: Submit the user’s input via POST to /register. This course teaches students how to think algorithmically and solve problems efficiently. RETURNS: for SELECT, a list of dict objects, each of which represents a row in the result set Trying to register the user's username into the database. html but I can't find anything wrong with it. The on-campus version of CS50x , CS50, is Harvard's largest course. Register; Log In App Features: register, quote, buy, index, sell, history; most of html templates (lots of Jinja dynamic content generation) and their UIs; application. 1 watching Demanding, but definitely doable. SQL, and JavaScript plus CSS and HTML. I'm doing "Finance" from Week 9. A short in which i work through the required specs of the project: View the Demo on Youtube. cs50 python. :green_book: Problem sets for CS50 course by Harvard University - endiliey/cs50 This is CS50x 2024. verify to compare hashes of users' passwords. Be sure it has that exact filename! If you upload a file with a different name, the autograder likely will fail when tl;drMy CS50 Finance app can register a "buy", I can see those values in my DB and I can see those values being rendered (using the usd helper function) on my index. Reload to refresh your session. Check out if this is the case. 0. I'm able to get the quote. Pset7 Finance register NameError: name 'pwd_context' is not defined. Finance. And notice how it uses pwd_context. Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. CS50 Finance 2019 Check50 errors. Notice how finance. cs50 Finance. I'm having issues with my This is my solution for pset9 : finance of cs50x 2024 - VedeshP/cs50_finance_final This problem set’s distribution code has recently changed. Be sure it has that exact filename! If you upload a file with a different C$50 Finance: Log In Log In So far, I have finished buy, quote, and the register functions, currently working on the index. Code works fine when I manually check it but check50 produces the following error? Can anyone help me fix this error? :( logging in as registered user succceeds expected status code 200, but got 404 import os from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from tempfile import mkdtemp from When im testing my code by entering in blank entries in username or password, i expect the site to show me the apologies like "Must provide username" or "Must provide password", but it only shows the This is the problem set 9 from CS50 2021 which is about a web application using Flask for user to "buy" and "sell" the stock - HEI204/CS50-pset9-Finance Stack Exchange Network. Thanks for your help, in any event. Introduction to the intellectual enterprises of computer science and the art of programming. Sign in Product Actions. CS50 Problem Set 9: Finance (2022). 🤑 PSET9 of "Harvard CS50's Introduction to Computer Science" Demo. Visit Stack Exchange Registro: complete a implementação de register de forma que um usuário consiga se registrar por meio de um form. Same for other methods like quote for example (it is said that the field symbol is not found in the template although it is in the page under an input EXACTLY like in the staff solution. Stars. CS50 (2021) - Finance. encrypt. 🎓 HarvardX's CS50 course - finance pset solution. username :( registration rejects duplicate username application raised an exception (rerun with --log for more details) sending POST request to A web application that leverages the Yahoo Finance API to simulate stock trading, built with Python (Flask), HTML, CSS, JavaScript, and SQLite. Contribute to deen257/cs50-finance-solution development by creating an account on GitHub. For each week, follow this workflow: Review the login function (or your register function) to find the difference. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, CS50-Finance. this is my check50: https://submit. C$50 Finance Hello, I have been Finance: Register Page is not working Watch how to solve the Finance problem set from CS50, a popular online course on computer science. Even if you are not a student at Harvard, you are welcome to “take” this course for free via this OpenCourseWare by working your way through the course’s eleven weeks of material. Designed for majors and non-majors alike, with or without prior programming experience. In this page you will find your portfolio showing how much money you have and also the different stocks you "own". I tried to check50, but on sell it does not even compile the code. This page is the first page you should see after logging in or registering. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site I'm down to my last check50 frown (:( buy handles fractional, negative, and non-numeric shares expected status code 400, but got 200) but my code doesn't allow for these, so I don't know what to do. Also, in the template, there is a For now, I'm jut simply trying to let any user register. Email certificates@cs50. db in order to open it with phpLiteAdmin. The problem only goes away when I get rid of my "POST conditional CS50-Finance. Readme License. Register at cs50. To navigate to the quote page click on Quote on the navbar. I tried returning the register template near the start of the register method, but that didn't fix anything. The user has to initially create an account, after which their account will be credited with 10000(imaginary) dollars. This repository Is an overview of my solutions to Harvard University's CS50 Finance Problem set. Languages include C, Python, and SQL plus HTML, CSS, and Via CS50's file browser, double-click finance. Get app Get the Reddit app Log In Log in to Reddit. Automate any workflow About. Stuck at 57% in Pset 8 Finance. Below are my code for the register function as well as my check50. A C$50 Finance: Log In - edX Log In CS50 Finance - /quote C$50 Finance Was having trouble finding out why my /quote route isn't POSTing. Languages include C, Python, and SQL plus HTML, CSS, and How to Take this Course. py in the latest CS50 question 2 pset7 finance check50 doesn't detect a valid sale despite portfolio updating correctly 98K subscribers in the cs50 community. When I first wrote the register function, everything worked fine, but when I wrote the rest, then went back to try to register A focused topic, but broadly applicable skills. After changing that and integrating it into the database tables everything worked :) CS50(2021) - Finance. Once registered, scroll down to “Get started for free” and click “Select Start plan” to choose the free plan. Visit Stack Exchange A focused topic, but broadly applicable skills. register. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. In the check50 details, notice the GET request: . CS50 Finance. Hello, World. Apparently, I do not have a submission button, howe Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site In the 2019 edition of CS50 Finance there is a final subproblem where you have to use AJAX to ask the server if a username a new user is trying to register with is already taken, and then alert the user and block form submission if it is. And am now trying to login, to the finance app, however I get a "400 error". This commit does not belong to any branch on this repository, and may Demanding, but definitely doable. Expand user menu Open settings menu. – Eduardo Matsuoka I have completed my application for pset9 and have all functions working properly, however check50 doesn't agree with my register implementation. It does not check if the username exists yet but should Allows users to login and register with SQL. thats a fantastic catch. import os from cs50 import SQL A focused topic, but broadly applicable skills. to register. DEBUG:cs50:SELECT * FROM users WHERE . Here is my code. You signed out in another tab or window. Contribute to mareksuscak/cs50 development by creating an account on GitHub. Finally, notice how login "remembers" that a user is logged in by storing his I assume something is wrong with /register section of application. In the 2019 edition of CS50 Finance there is a final subproblem where you have to use AJAX to ask the server if a username a new user is trying to register with is already taken, and then alert the user and block form submission if it is. Force yourself to sit down and do register, don't think about the other routes. Take a look at its structure (i. Register; Log In; Log In. I'm not of the general philosophy of Hello guys, This is my first time posting on reddit asking for help : I've been so far going through cs50 on ressources online when I got stuck, but Skip to main content. py, but can't find my problem. Improve this answer. You signed in with another tab or window. C$50 Finance I genuinely don't know why keep getting this error: :( buy handles valid purchase expected to find "112. - Linh012/cs50-finance I think the issue is in my register. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their How to Take this Course. Renders apology is blank or already exists. Students who have already completed CS50x, if found to be in violation, will have their CS50 Certificate permanently revoked. C $ 5 0 Finance. I feel I am so dumb because I took much time to do the other lectures but still could not figure CS50 Finance (pset7) - register function is not working for application. I´m new to programming, doing CS50 and currently struggling to complete the Pset9 – Finance, version from 2021. Go to CS50’s Gradescope page. It is stored in finance. Copy and paste the code and html for login into register and a register. harvard. If you ever need to get back to your portfolio page click the C$50 Finance on the navbar. User must input password and then confirm. If someone could help me with this, that would be great. Log In / Sign Up; Advertise on Reddit; Shop Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Stack Exchange Network. About. Drag and drop your finance. Features include parish news, Mass and Confessions I have coded the CS50 Finance problem set and it seems to be working fine from my end. About The Project. What to Do. Members Online • [deleted Finance - register function returns "invalid username and/or password" C$50 Finance Hi, I am having problems with the register function in C$50 finance. Explore a wide range of online courses from Harvard, MIT, and more on edX. Thank you! I solved it finally!! :) – Julia . id from the database. HELP Finance register not passing check50 C$50 Finance import os from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from werkzeug Problem with Updated CS50 Finance - all API calls to lookup stocks come back as None. Remember this Hint from the spec:. html. I´ve read as many threads I could find about the same issue, but none of the answers Demanding, but definitely doable. Solution to edX CS50 problem set 7. C $ 5 0 Finance. However, When I started doing Pset Finance, really not very clear how to handle this. pset7 finance ':( sell handles valid sale' 0. e. Pset7 Finance register NameError: name 'pwd_context' is not defined Finance is a web app that allows logged-in users to "buy" and "sell" stocks (with pretend money) as well as look up real stock quotes fetched from IEX API. Provide details and share your research! But avoid . . - Linh012/cs50-finance When in doubt, read docs and use print statements ;D! Here is the doc for CS50 Python, SQL section, you can see that it says . Renders apology if either input is blank or the passwords don't match. In my application. javascript css python html flask sql web-application cs50 jinja Resources. Allows the user to "buy" stocks by submitting a Stack Exchange Network. Problem sets inspired by real-world domains of biology, cryptography, finance, forensics, and gaming. Members Online:( logging in as registered user upvote This is CS50 AP, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for students in high school, which satisfies the College Board's AP Computer Science Principles (CSP) curriculum framework. Complete the implementation of register in such a way that it allows a user to register for an account via a form. dev using your GitHub account; Run update50 in your codespace’s terminal window to ensure your codespace is up-to-date and, when prompted, click Rebuild now; Submit Birthdays; Submit Finance; When to Do It. Register; Log In; Register. I'm looking for someone to help me with my issue by providing another way to change my finance. Require that a user input a username, implemented as a Video Consent Form-- District's Re-Opening Plan-- Child Care available for first responders and medical personnel please go to www. I thought that the Names and Symbols were the same since in the finance. if you have any comments please do not hesitate to send me an e-mail . :( registration rejects duplicate username - expected status code 200, but got 400 0 pset 9 Finance can't register or check for duplicates TemplateSyntaxError C$50 Finance: Log In - edX Log In Make all the code to register, then make all the code to get a quote, then buy, then sell. At the bottom, there is (Create new table on database 'finance') and (Create new view on database 'finance'). Posted by u/ZealousidealVirus674 - 2 votes and 2 comments This is CS50x 2024. Follow answered Feb 7 at 22:31. db. Here are the errors I get in check50::( registering user succeeds application raised an exception (rerun with --log for more details) Log sending POST request to /register exception raised in application: TemplateSyntaxError: expected token ',', got 'string' C$50 Finance: Log In - edX Log In cs50 week 9 solution . db if you have already completed week 9 Finance and put them in the comments. :( registration rejects duplicate username - expected status code 200, but got 400 0 pset 9 Finance can't register or check for duplicates TemplateSyntaxError I'm really at a loss after trying to get Quote to work for the past two days. Lee-Loi/CS50-Finance. Timestamps:00:00 - Understanding05:48 - SQL table s When in doubt, read docs and use print statements ;D! Here is the doc for CS50 Python, SQL section, you can see that it says . PSET9 / can't check until a frown turns upside down. us. Please let So Currently I moved to the Web Tracks. This project is an educational project, one of the CS50x Problem set. Download your finance. solution for pset 9 in CS50x. A focused topic, but broadly applicable skills. db has been unchanged. "id" is a string literal, not users. If you’d like to submit the course’s problem sets and final project for feedback, be sure to create an edX account, if you haven’t already. Contribute to dan-balan/CS50-finance development by creating an account on GitHub. Open menu Open navigation Go to Reddit Home. :( registration rejects duplicate username - expected status code 200, but got 400 0 PSET 8 Finance ":( buy handles valid purchase exception raised in application: TypeError: 'method' object is not subscriptable" Download your finance. Log into cs50. Pset7 cs50 finance register method not displaying register. CS50 finance register not inserting into database C$50 Finance Hi guys, I did the 2018 finance, and am just refreshing myself on the new pset, want to incorporate more JS into it. Interested in a verified certificate, a professional certificate, or transfer credit and accreditation? A focused topic, but broadly applicable skills. There is no bug in your register function, I copied it into mine finished finance in place of mine register function, and check50 accepted Social, but educational. Otherwise, you let the user register and proceed. cs50. Share. flask register, issue with importing cs50 module. zip file by control-clicking or right-clicking on the file in your codespace’s file browser and choosing Download. I'd really appreciate it if someone just took screenshots of their finance. Thanks! Languages include C, Python, SQL, and JavaScript plus CSS and HTML. I started getting very picky about how the user got feedback when something was posted. Visit Stack Exchange Pset7 Finance register NameError: name 'pwd_context' is not defined. Not only will this tool allow you to check real stocks’ actual prices and portfolios’ values, it will also let you buy (okay, “buy”) and sell (okay, “sell”) stocks by querying IEX for stocks’ prices. After 2 long months of googling errors, writing the code, and wondering why it doesn't work, I FINALLY COMPLETED CS50 FINANCE. asked 29 Jan, 2021. html as a starting point, they're both very similar in implementation. username. If you downloaded the distribution code prior to 2023-06-01T11:00:00-04:00, run the following terminal commands in your finance directory to download the latest Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company 00:00 Intro, 01:48 Register, 06:11 Quote, 07:47 Buy, 10:35 SQL Update, 12:22 Index, 15:58 Sell, 19:07 HistoryWelcome to This is CS50 Week 9 Problem Set - Fin Demanding, but definitely doable. Students in high school may receive AP credit for this course provided their school approves the credit and Stack Exchange Network. I'm having a headache with CS50 pset9 - Finance, as I can't figure out why I don't pass the check, I am having the following errors: :) app. From Once you’ve implemented register correctly, you should be able to register for an account and log in (since login and logout already work)! And you should be able to see your rows via I'm doing "Finance" from Week 9. A focused topic, but broadly applicable skills Open menu Open navigation Go to Reddit Home. C$ 50 Finance - Register not working self. 68% of CS50 students have never taken CS before. 1. The web app works fine on my own computer, but when I run it using check50, it is unable to register the user (because of a NoneType object not subscriptable error). The CS50 ai is not being helpful at all. 00" in page, but it wasn't found I feel like I've tried everything and nothing seems to be working. 2. cs50 website they actually were the same. ; Drag and drop your finance. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, and software engineering. Definitely looks a lot harder than it is. cs50 finance - RuntimeError: unsupported value: <function buy at 0x7f1c380cfd90> 0. CS50 Finance could of been the entire course. Week 0. Languages include C, Python, and SQL plus HTML, CSS, and Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Posted by u/Intelligent-Guava353 - 1 vote and 1 comment There's a problem here session["user_id"] = "id". PS9 Finance - Check50 - :( buy handles valid purchase. I'll post my index and buy function and index template below. A mock-trading platform to buy and sell stocks As part of CS50's web track, I was tasked with building this mock trading platform. how to link button to the return apology cs50 finance. :( registration rejects duplicate username - expected status code 200, but got 400 C$50 Finance Hello, As I guess many of us on CS50, I´m new to programming, and I´ve been stuck for 2 weeks in the registration duplicate issue of Pset9 Finance, so after trying many things and a careful reading of every single Stack Exchange Network. Finance is a web app that allows logged-in users to "buy" and "sell" stocks (with pretend money) as well as look up real stock quotes fetched from IEX API. Register; Log In; Register C $ 5 0 Finance. Hot Network Questions How might digitigrade races in a predominantly plantigrade society cope with the problems that come with structures not being designed for them? CS50 finance/sell: DB not updating cash. I'm trying to post data to it, but can't figure out what I'm doing wrong. They are, the Phone: 516-378-1315. As the title says, I am working on the register method of cs50 finance. 🎉 Curious how your 2023 work counts toward the 2024 course? See our FAQs if you started in 2023 or earlier. Asking for help, clarification, or responding to other answers. Website using MVC paradigm with PHP. Don’t beat yourself up if you get stuck. 🤑 PSET9 of "Harvard CS50's Introduction to Computer Science" Topics. MIT license Activity. 4 stars Watchers. I believe check was the hardest part, but thanks to the CS50 community I was a le to get through it. It's logging out and trying to log that same user back in that is giving me trouble. import os from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Just a few things I'm finding so far that I can recommend: Might just be me, but i wouldn't use company_name as my company identifying feature for searches, I would use symbol or company_id only. security import check_password_hash, generate_password_hash from flask_session import Session from helpers CS50 Finance Pset9 Part 1 Register Function Understanding and solution CS50 Finance - /quote C$50 Finance Was having trouble finding out why my /quote route isn't POSTing. Which one am I supposed to do? – CS50 uses IEX's API and once you register, it can used for only 30 days for free. I'm down to my last check50 frown (:( buy handles fractional, negative, and non-numeric shares expected status code 400, but got 200) but my code doesn't allow for these, so I don't know what to do. db successfully instead of it giving me all of the errors it did as per the log. You switched accounts on another tab or window. @app. - Lee-Loi/CS50-Finance. By I realize that the register() function I wrote automatically logs in the newly-registered user. db comes with a table called users . scopeonline. Thank y'all for your support and happy coding! Final project here I go. ngnnah/cs50-pset9-finance App Features: register, quote, buy, index, sell, history; most of html templates (lots of Jinja dynamic content generation) and their UIs; application. zip file to the area that says Drag & Drop. And on the top there is (Structure, SQL, Export, Import, and Vacuum). I'd also love any im using the flask run commend in the finance directory but still i get the RuntimeError: API_KEY not set . edu with any questions. Quote . Learn from a full-stack developer and coding mentor. Just a few things I'm finding so far that I can recommend: Might just be me, but i wouldn't use company_name as my company identifying feature for searches, I would use symbol or company_id only. Commented Feb 8 at 13:10. Using this amount, the user can purchase a particular stock listed on the New York C$50 Finance: Log In - edX Log In Posted by u/Intelligent-Guava353 - 1 vote and 1 comment Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. The above db. - Lee-Lo Skip to content. , schema). I researched, but I can't understand what does that mean. Navigation Menu Toggle navigation. py exists :) application starts up :) register page has all required elements :( registering user succeeds. Contribute to rafa763/cs50-finance development by creating an account on GitHub. com. edx. Any help is gratefully appreciated. This hash = generate_password_hash("password") is a problem. Skip to main content. Social, but educational. Allow a new user to register for an account, rendering an apology view if the Stack Exchange Network. Even in the console, I register. When I click on the register tab of the site, my login template seems to be popping up instead. Purchase & sell shares, View price of stocks & transaction history with Yahoo Finance API. CS50 Finance Pset9 Part 1 Register Function Understanding and solution :( registering user succeeds application raised an exception (rerun with --log for more details) sending POST request to /register exception raised in application: RuntimeError: UNIQUE constraint failed: users. Solutions to problem sets from CS50's Introduction to Computer Science - emiliegervais/CS50 Demanding, but definitely doable. Just a suggestion but for example there are multiple symbols for Google (goog, googl) so who the company name could be the same. html ("/" route) and I am rendering a "flash" with information from the previous transaction at that route as well. I finished writing my index and tried to run the program to check, but I get a 500 internal server er 🎓 Harvard CS50x — 2018 solutions 👨🏫. 🎓 Harvard CS50x — 2018 solutions 👨🏫. Once you’ve confirmed your account via a confirmation Problemsets(Finance and Homepage): Background. (Try to login using "password" as the password; it should work). ypuex cwltr qfeeb zohfdea ftohii xezvwn xtsho tnjg hkkdtq sfgvfwk