From d6c1410bd1e4160cece30516492ebf391740eeb8 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 30 Mar 2023 08:58:36 +0700 Subject: set solr flag after sync --- indoteknik_custom/models/apache_solr.py | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3