Skip to content

Conversation

@Laksh-13
Copy link
Contributor

-It's a very initial UI and I am yet to add a function that asks for user vehicle registration.
-It is going to be a WIP with more functions that can be added as the project builds.
-getpass() is a lib-function that should either not display your password when typing or print a ***.

-You will have to help me out with the git push because I don't know why but I've accidentally pushed DB files on this branch as well. Thanks!

@Laksh-13 Laksh-13 requested a review from rajwinderb August 11, 2021 06:25
@Laksh-13 Laksh-13 linked an issue Aug 11, 2021 that may be closed by this pull request
2 tasks
Copy link
Contributor

@rajwinderb rajwinderb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything works great and is well programmed, we just need to wait for some things in main and neaten up where things are!! This will be done in a new branch we create!

print("Successful Registration!")
print("")


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to have this in a separate file when we get to writing the user interface properly.

But I really like the exception handling!!!!

class DbConnectionError(Exception):
pass

#DB Connection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All db connection things to be moved to db_utils

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do that over the weekend :)



#Function to register new user details into the DB
def new_registration(first_name,last_name,email,password):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to db_utils

print("")


#menu function
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brill way to start the UI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!! Once I've migrates stuff to db.utils, as per your rec, we could delete the branch and create a new one for review with the wider team.

@clemcodes
Copy link
Contributor

Brilliant work! @Laksh-13 It works well here too! I spent a bit of time figuring out how to execute the code. Just a note here that we will need to write in README later how to run the code.

host = "localhost",
user = "root",
passwd = "password", #Reviewer Password
database = "walk2zero"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After moving to db_utils.py, we will need to import variables from the config.py file from config import USER, PASSWORD, HOST, and change string values to those variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User Authentication

4 participants