]> git.notmuchmail.org Git - notmuch/commitdiff
python: Fix Database().needs_upgrade()
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 8 Jul 2011 20:47:06 +0000 (22:47 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 8 Jul 2011 20:47:06 +0000 (22:47 +0200)
A stupid typo was preventing this from ever working and it was not
detected until now. Patrick noted the typo and proposed the fix in mail
id:"20110704203926.GA20238@brick.lan".

Patch-by: Patrick Totzke <patricktotzke@googlemail.com>
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
bindings/python/notmuch/database.py

index 5deb2a5dc06a62cb8d97096b376baf44812c7648..3770b13299d1af3cf4626b126c5eccbc01293911 100644 (file)
@@ -195,7 +195,7 @@ class Database(object):
         # Raise a NotmuchError if not initialized
         self._verify_initialized_db()
 
-        return notmuch_database_needs_upgrade(self._db) 
+        return nmlib.notmuch_database_needs_upgrade(self._db) 
 
     def upgrade(self):
         """Upgrades the current database