Skip to content

Commit 809870e

Browse files
committed
remove test column from table
1 parent 556394e commit 809870e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Password-Manager-GUI/passwords.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def sql_connection():
1414
# Function to create table
1515
def sql_table(con):
1616
cursorObj = con.cursor()
17-
cursorObj.execute("CREATE TABLE IF NOT EXISTS passwordStore(website text, username text, pass text,test text)")
17+
cursorObj.execute("CREATE TABLE IF NOT EXISTS passwords(website text, username text, pass text)")
1818
con.commit()
1919

2020
# Call functions to connect to database and create table
@@ -26,7 +26,7 @@ def submit(con):
2626
cursor = con.cursor()
2727
#Insert Into Table
2828
if website.get()!="" and username.get()!="" and password.get()!="":
29-
cursor.execute("INSERT INTO passwordStore VALUES (:website, :username, :password)",
29+
cursor.execute("INSERT INTO passwords VALUES (:website, :username, :password)",
3030
{
3131
'website': website.get(),
3232
'username': username.get(),
@@ -54,7 +54,7 @@ def query(con):
5454
cursor = con.cursor()
5555

5656
#Query the database
57-
cursor.execute("SELECT *, oid FROM passwordStore")
57+
cursor.execute("SELECT *, oid FROM passwords")
5858
records = cursor.fetchall()
5959
#print(records)
6060

0 commit comments

Comments
 (0)