MCPcopy Create free account
hub / github.com/adobe/Marinus / add_whois_org

Function add_whois_org

python3_cron_scripts/setup.py:316–328  ·  view source on GitHub ↗

Whois registrations can be searched based on the name of the registering organization. This will add a company name to the list of organizations that will be searched. This is saved in the config collection.

(mongo_connector, org)

Source from the content-addressed store, hash-verified

314
315
316def add_whois_org(mongo_connector, org):
317 """
318 Whois registrations can be searched based on the name of the registering organization.
319 This will add a company name to the list of organizations that will be searched.
320 This is saved in the config collection.
321 """
322 config_collection = mongo_connector.get_config_connection()
323 now = datetime.now()
324
325 print("Adding Whois Org: " + org)
326 config_collection.update_many(
327 {}, {"$addToSet": {"Whois_Orgs": org}, "$set": {"updated": now}}
328 )
329
330
331def add_whois_name_server(mongo_connector, name_server):

Callers 1

mainFunction · 0.85

Calls 1

get_config_connectionMethod · 0.45

Tested by

no test coverage detected