(self, user, tags, type, productId)
| 362 | |
| 363 | class DBDataFetcher: |
| 364 | def __init__(self, user, tags, type, productId): |
| 365 | try: |
| 366 | self.mon = pymongo.MongoClient(host=config.host, port=config.mongoPort) |
| 367 | db = self.mon[productId + ":" + user + ":insta"] |
| 368 | self._collection = db[tags] |
| 369 | except Exception as err: |
| 370 | print(f"exception : {err}\n") |
| 371 | print("error::DBDataFetcher.init>>", sys.exc_info()[1]) |
| 372 | |
| 373 | def dbFetcher(self, limit=20): |
| 374 | mainlist = [] |
nothing calls this directly
no outgoing calls
no test coverage detected