Commits

Aleš Erjavec committed 3a5221c

Replacing the old value in __setitem__ method.

  • Participants
  • Parent commits 8212c4a

Comments (0)

Files changed (1)

File obiKEGG2/caching.py

     def __setitem__(self, key, value):
         value = pickle.dumps(value)
         self.con.execute("""
-            INSERT INTO cache
+            INSERT OR REPLACE INTO cache
             VALUES (?, ?)
         """, (key, value))
         self.con.commit()