summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/apache_solr.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-03-30 08:58:36 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-03-30 08:58:36 +0700
commitd6c1410bd1e4160cece30516492ebf391740eeb8 (patch)
tree836f5b269e11e48f18a7b097fb8a5927033ee111 /indoteknik_custom/models/apache_solr.py
parent20eebfe836dcd6e971ccd0676b6294a2f3b06e5a (diff)
set solr flag after sync
Diffstat (limited to 'indoteknik_custom/models/apache_solr.py')
-rw-r--r--indoteknik_custom/models/apache_solr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py
index 16cf5908..16b70808 100644
--- a/indoteknik_custom/models/apache_solr.py
+++ b/indoteknik_custom/models/apache_solr.py
@@ -65,6 +65,7 @@ class ApacheSolr(models.Model):
'active_b': template.active
})]
solr.add(document)
+ template.solr_flag = 1
# add counter for monitoring
_logger.info('%s / 500' % counter)
_logger.info('Success add to solr product %s' % template.id)