Skip to content

Commit

Permalink
Added else statement and changed layout a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
SVijayB committed Jul 8, 2020
1 parent 775d083 commit d04e0a7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Password Manager/src/Password_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
from Modules.Colours import *
from Modules.Password import *

conn = sqlite3.connect('../assets/Database.db')
cursor = conn.cursor()

if __name__ == "__main__":

os.system('cls')
password_function()
try:
conn.execute('''CREATE TABLE DETAILS
(ACCOUNT TEXT PRIMARY KEY NOT NULL,
Expand All @@ -16,11 +21,6 @@
except:
pass

password_function()

conn = sqlite3.connect('../assets/Database.db')
cursor = conn.cursor()

os.system('cls')
logo = open("../assets/logo.txt","r")
output = "".join(logo.readlines())
Expand Down Expand Up @@ -67,6 +67,8 @@
green("\n" + account.capitalize() + " Details : ")
print("Username :", username)
print("Password :", password)
else:
red("\nThere are no details for %s" % account + "\n")

elif (choice == 3):
get_all()
Expand Down

0 comments on commit d04e0a7

Please sign in to comment.