Sfoglia il codice sorgente

Fix how nodes are removed in mongodb

oz123 10 anni fa
parent
commit
105c264eed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pwman/data/drivers/mongodb.py

+ 1 - 1
pwman/data/drivers/mongodb.py

@@ -88,8 +88,8 @@ class MongoDB(Database):
     def editnode(self, nid, **kwargs):
         self._db.nodes.update({'_id': nid}, { '$set' : kwargs})
 
-
     def removenodes(self, nid):
+        nid = list(map(int, nid))
         self._db.nodes.remove({'_id': {'$in': nid}})
 
     def fetch_crypto_info(self):