MCPcopy Index your code
hub / github.com/geekcomputers/Python / _insertFunction

Method _insertFunction

insta_monitering/insta_datafetcher.py:157–165  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

155 return userdata, media_post, top_post
156
157 def _insertFunction(self, record):
158 try:
159 records = self._collection.find({"id": record["id"]})
160 if records.count() == 0:
161 # record["timestamp"] = time.time()
162 self._collection.insert(record)
163 except Exception as err:
164 print(f"Execption : {err}")
165 print("error::Monitering.insertFunction>>", sys.exc_info()[1])
166
167 def _lastProcess(self, userdata, media_post, top_post):
168 mainlist = []

Callers 1

_lastProcessMethod · 0.95

Calls 2

countMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected