title = note[:note.index('.')]
f = open(os.path.join(PROJECTS_DIRECTORY, note))
if title in existing_titles: continue
text = f.read()
cursor.execute("INSERT INTO projects (title, text)\
title = note[:note.index('.')]
f = open(os.path.join(PROJECTS_DIRECTORY, note))
if title in existing_titles: continue
text = f.read()
cursor.execute("INSERT INTO projects (title, text)\
- VALUES (%s, %s)", (title, text))
+ VALUES (%s, %s)", (title, text))