]> git.phdru.name Git - m_librarian.git/commitdiff
Fix a minor bug
authorOleg Broytman <phd@phdru.name>
Sat, 6 Feb 2016 14:23:46 +0000 (17:23 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 6 Feb 2016 14:23:46 +0000 (17:23 +0300)
m_librarian/inp.py

index e99800a18e13d4ec3fc6ffcefa6915e5699b9642..d4e6cc1ff730f09f3dc403bdb213e928da4dbd54 100644 (file)
@@ -63,7 +63,7 @@ def import_inpx(path):
     inpx = ZipFile(path)
     for name in inpx.namelist():
         archive, ext = os.path.splitext(name)
-        if ext != 'inp':
+        if ext != '.inp':
             continue
         inp = inpx.open(name)
         sqlhub.doInTransaction(import_inp, archive + '.zip', inp)