From 9a81027bd2b57aed7940c1e1812cf885925cd45b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 26 Dec 2015 00:29:31 +0300 Subject: [PATCH] Rename data -> glst (fixes) --- scripts/ml-import.py | 4 ++-- scripts/ml-initdb.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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: -- 2.39.5