]> git.phdru.name Git - m_librarian.git/blobdiff - scripts/ml-initdb.py
Rename data -> glst (fixes)
[m_librarian.git] / scripts / ml-initdb.py
index 79bbe431a1ef1da517c801465b5d8040309c98f1..0211187cb145a3acbce1af250bed6e4191aa73d1 100755 (executable)
@@ -1,6 +1,12 @@
 #! /usr/bin/env python
 
 from m_librarian.db import init_db
+from m_librarian.glst import import_glst
 
 if __name__ == '__main__':
     init_db()
+    old, new = import_glst()
+    if old:
+        print "Imported %d genres (ignored %d existing)" % (new, old)
+    else:
+        print "Imported %d genres" % new