X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=scripts%2Fml-initdb.py;h=71d3598e512bdd8475833b8ef44666d81d457696;hb=ce323cc1847cdb57a6fc6df2c685e68fd76be522;hp=0d4e73b6467d7e93bff7febe22e9622ad3b8e64b;hpb=2b29248d0a515b4e0b33183eae584511bf399bfd;p=m_librarian.git diff --git a/scripts/ml-initdb.py b/scripts/ml-initdb.py index 0d4e73b..71d3598 100755 --- a/scripts/ml-initdb.py +++ b/scripts/ml-initdb.py @@ -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)