diff options
Diffstat (limited to 'indoteknik_custom/models/solr/apache_solr.py')
| -rw-r--r-- | indoteknik_custom/models/solr/apache_solr.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indoteknik_custom/models/solr/apache_solr.py b/indoteknik_custom/models/solr/apache_solr.py index cb44e7ed..3be37a5a 100644 --- a/indoteknik_custom/models/solr/apache_solr.py +++ b/indoteknik_custom/models/solr/apache_solr.py @@ -27,7 +27,7 @@ class ApacheSolr(models.Model): return pysolr.Solr(url + schema, always_commit=True, timeout=30) - def get_single_doc(self, schema, id): + def get_doc(self, schema, id): try: return self.connect(schema).search(f'id:{id}').docs[0] except: @@ -53,7 +53,6 @@ class ApacheSolr(models.Model): new_dict[cleaned_key] = value return new_dict - def _update_stock_product_to_solr(self, limit=10000): current_time = datetime.now() delta_time = current_time - timedelta(days=3) |
