diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-03-30 08:58:36 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-03-30 08:58:36 +0700 |
| commit | d6c1410bd1e4160cece30516492ebf391740eeb8 (patch) | |
| tree | 836f5b269e11e48f18a7b097fb8a5927033ee111 | |
| parent | 20eebfe836dcd6e971ccd0676b6294a2f3b06e5a (diff) | |
set solr flag after sync
| -rw-r--r-- | indoteknik_custom/models/apache_solr.py | 1 |
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) |
