def _push_dataset()

in collection_manager/collection_manager/services/history_manager/SolrIngestionHistory.py [0:0]


    def _push_dataset(self, dataset_id, type, config):
        if self._solr_datasets:
            if len(self._solr_datasets.search(q=f'id:{dataset_id}')) == 0:
                self._solr_datasets.add([{
                    'id': dataset_id,
                    'dataset_s': dataset_id,
                    'latest_update_l': int(datetime.now().timestamp()),
                    'store_type_s': type,
                    'config': config,
                    'source_s': 'collection_config'
                }])
                self._solr_datasets.commit()