minor edit to string formatting

parent 14eb357e
......@@ -20,7 +20,8 @@ class dbConnector():
selectAttachmentById = "SELECT type, filepath FROM attachments WHERE rowid = ?"
def __init__(self):
self.connection = sqlite3.connect("/home/"+os.environ["USER"]+"/.config/pyre/storage.db")
# TODO: this but better
self.connection = sqlite3.connect("/home/{}/.config/pyre/storage.db".format(os.environ["USER"]))
self.cursor = self.connection.cursor()
# rowid for autoincrement primary key
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment