Commit 07081f57 authored by Bronger, Torsten's avatar Bronger, Torsten
Browse files

Add Python variables for the MongoDB collections

parent 587628c9
......@@ -19,3 +19,7 @@ logger = setup_logging(logging.WARNING)
yaml = YAML()
configuration = yaml.load(Path("/etc/findrd/findrd.yaml"))
mongodb_client = MongoClient(configuration["mongodb_url"])
database = mongodb_client.findRD
findings = database.findings
crawlings = database.crawlings
emails = database.emails
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment