diff options
Diffstat (limited to 'monitor/josef_leveldb.py')
| -rwxr-xr-x | monitor/josef_leveldb.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor/josef_leveldb.py b/monitor/josef_leveldb.py index 74498c7..5c7fc8a 100755 --- a/monitor/josef_leveldb.py +++ b/monitor/josef_leveldb.py @@ -91,6 +91,8 @@ def db_add_certs(db, data): if db is None: print "ERROR: NO DATABASE SET!" return + + # batch = leveldb.WriteBatch() for cert in data: try: db_add_domain_2(db, cert["subject"].split("CN=")[1], str(cert)) @@ -103,7 +105,7 @@ def db_add_certs(db, data): pass except IndexError: pass - + # db.Write(batch, sync = True) def db_lookup_domain(db, domain): |
