existing_titles.append(row[0])
for note in notes:
+ if note[:1] == '.': continue
if note == 'index.php' or note == 'notes.php': continue
url = note[:note.index('.')]
f = open(os.path.join(NOTES_DIRECTORY, note))
existing_titles.append(row[0])
for note in notes:
+ if (note[:1] == '.'): continue
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))