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

Method find_one

python3_cron_scripts/libs3/DNSManager.py:236–250  ·  view source on GitHub ↗

Find a single record for the specified criteria :param criteria: A JSON object representing the find query. No limit support. :param source: (Optional) The DNS record source ("ssl","virustotal","sonar_dns",etc.) :return: The cursor from the find operation

(self, criteria, source)

Source from the content-addressed store, hash-verified

234 return check
235
236 def find_one(self, criteria, source):
237 """
238 Find a single record for the specified criteria
239
240 :param criteria: A JSON object representing the find query. No limit support.
241 :param source: (Optional) The DNS record source ("ssl","virustotal","sonar_dns",etc.)
242 :return: The cursor from the find operation
243 """
244 if source != None:
245 criteria["sources.source"] = source
246
247 check = self._mongo_connector.perform_find_one(
248 self.all_dns_collection, criteria
249 )
250 return check
251
252 def find_count(self, criteria, source):
253 """

Callers 14

mainFunction · 0.95
mainFunction · 0.95
create_nodesFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.80
mainFunction · 0.80
fetch_starting_indexFunction · 0.80
mainFunction · 0.80
perform_find_oneMethod · 0.80

Calls 1

perform_find_oneMethod · 0.80

Tested by

no test coverage detected