From: Oleg Broytman Date: Fri, 25 Dec 2015 21:29:31 +0000 (+0300) Subject: Rename data -> glst (fixes) X-Git-Tag: 0.0.4~66 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=9a81027bd2b57aed7940c1e1812cf885925cd45b;p=m_librarian.git Rename data -> glst (fixes) --- diff --git a/scripts/ml-import.py b/scripts/ml-import.py index 5275d0b..6785464 100755 --- a/scripts/ml-import.py +++ b/scripts/ml-import.py @@ -2,14 +2,14 @@ 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() diff --git a/scripts/ml-initdb.py b/scripts/ml-initdb.py index ca696bd..0211187 100755 --- a/scripts/ml-initdb.py +++ b/scripts/ml-initdb.py @@ -1,11 +1,11 @@ #! /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: