Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Database/safe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import cv2

# /Users/kalle/Desktop/myfile.py
PASSWORD = "123456"
PASSWORD = "xxx"

connect = raw_input("What is your password?\n")

Expand All @@ -22,7 +22,7 @@
NAME TEXT NOT NULL,
EXTENSION TEXT NOT NULL,
FILES TEXT NOT NULL);''')
print("Your safe has been created!\nWhat would you like to store in it today?")
print("Your safe has been created.\nWhat would you like to store in it today?")
except:
print("You have a safe, what would you like to do today?")

Expand Down Expand Up @@ -96,4 +96,4 @@
command = 'INSERT INTO SAFE (FULL_NAME, NAME, EXTENSION, FILES) VALUES (%s, %s, %s, %s);' %('"' + file_name +'"', '"' + NAME +'"', '"' + EXTENSION +'"', '"' + file_string +'"')

conn.execute(command)
conn.commit()
conn.commit()