def saveDB(self, data: pd.DataFrame, handler): def callback(result): handler.send_message(handler.project_name, result, self._date + '_' + result['_id']) re = util.saveMongoDB(data, util.genEmptyFunc(), DB_NAME, COLLECTION_HEAD + self._date, callback) util.everydayChange(re, 'gpfh')
def saveDB(self, data: pd.DataFrame, date): re = util.saveMongoDB(data, util.genEmptyFunc(), self.DB_NAME, self.COLLECTION_HEAD + date, None) util.everydayChange(re, 'gpfh')