import sys
from m_librarian.db import init_db, update_counters
-from m_librarian.glst import import_data
+from m_librarian.glst import import_glst
from m_librarian.inp import import_inpx
if __name__ == '__main__':
if len(sys.argv) != 2:
sys.exit("Usage: %s file.inpx" % sys.argv[0])
init_db()
- import_data()
+ import_glst()
for inpx in sys.argv[1:]:
import_inpx(inpx)
update_counters()
#! /usr/bin/env python
from m_librarian.db import init_db
-from m_librarian.glst import import_data
+from m_librarian.glst import import_glst
if __name__ == '__main__':
init_db()
- old, new = import_data()
+ old, new = import_glst()
if old:
print "Imported %d genres (ignored %d existing)" % (new, old)
else: