first commit
This commit is contained in:
commit
cd1e91bb99
287 changed files with 86425 additions and 0 deletions
26
rasta_exp/utils/get_missing.py
Executable file
26
rasta_exp/utils/get_missing.py
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
import couchdb
|
||||
import json
|
||||
import sys
|
||||
import os
|
||||
import configparser
|
||||
_config = configparser.ConfigParser()
|
||||
_config.read("settings.ini")
|
||||
_cfg = _config["Couch"]
|
||||
couch_srv = couchdb.Server(f"http://{_cfg.get('user')}:{_cfg.get('password')}@{_cfg.get('host')}:{_cfg.getint('port')}/")
|
||||
|
||||
|
||||
set_name = sys.argv[1]
|
||||
|
||||
couch_db = couch_srv['rasta-' + set_name]
|
||||
|
||||
with open(f"{set_name}_all", 'r') as f_in:
|
||||
for line in f_in.readlines():
|
||||
line = line.strip()
|
||||
if line in couch_db:
|
||||
continue
|
||||
else:
|
||||
print(line)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue