X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=publish_projects.py;h=14a577279e2926928064b53382b0d25ee5ae873b;hb=2cf7880d4afdde09707d4fc62e82597d6bfea7a0;hp=6e538d965777242d03cc0fd3d24758633257b48b;hpb=75e132f05e9b46a388c2ca3a23e30e57e9d9bc3f;p=dylansserver.git diff --git a/publish_projects.py b/publish_projects.py index 6e538d9..14a5772 100755 --- a/publish_projects.py +++ b/publish_projects.py @@ -25,9 +25,10 @@ for row in results: 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))