X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=publish_notes.py;fp=publish_notes.py;h=4b711d963a9347ca75a8840847b78bb65da4f8ba;hb=fd9475498aaef1e21324c9acea39463fa53fcbbe;hp=3c955c373d6710b404afdc23e57008b3c4b5107a;hpb=a55816dd876cbc8009bdb8f41ff23ee8474fd1b0;p=dylansserver.git diff --git a/publish_notes.py b/publish_notes.py index 3c955c3..4b711d9 100755 --- a/publish_notes.py +++ b/publish_notes.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 NOTES_DIRECTORY = '/home/dylan/docs/notes' @@ -37,5 +37,5 @@ for note in notes: VALUES(\"%s\", \"%s\", \"%s\", \"%s\")"\ % (time.strftime("%Y/%m/%d %I:%M:00", date_posted), url, title, db.escape_string(text)) - #print sql - cursor.execute(sql) + print sql + #cursor.execute(sql)