]> git.phdru.name Git - m_librarian.git/blobdiff - scripts/ml-initdb.py
Feat(glst): Report imported glst counter
[m_librarian.git] / scripts / ml-initdb.py
index 0d4e73b6467d7e93bff7febe22e9622ad3b8e64b..71d3598e512bdd8475833b8ef44666d81d457696 100755 (executable)
@@ -16,8 +16,9 @@ if __name__ == '__main__':
 
     open_db(args.database)
     init_db()
-    old, new = import_glst()
-    if old:
-        print "Imported %d genres (ignored %d existing)" % (new, old)
+    count_old, count_new = import_glst()
+    if count_old:
+        print("Imported %d genres (ignored %d existing)" % (
+            count_new, count_old))
     else:
-        print "Imported %d genres" % new
+        print("Imported %d genres" % count_new)