Merge branch 'dev' into live
[dylansserver.git] / publish_notes.py
index 2f99dc6..3c955c3 100755 (executable)
@@ -8,7 +8,7 @@ import MySQLdb as db
 import ConfigParser
 
 config = ConfigParser.RawConfigParser()
-config.read('/etc/dylanstestserver.ini')
+config.read('/etc/dylansserver.ini')
 domain = config.get('database', 'domain')
 user = config.get('database', 'user')
 password = config.get('database', 'password').replace('"', '')
@@ -25,6 +25,7 @@ for row in results:
     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))