hotfix attempt 1

This commit is contained in:
simon987 2019-02-02 09:17:59 -05:00
parent dd3775cecd
commit 8ced4859f3
3 changed files with 6 additions and 3 deletions

View File

@ -20,4 +20,5 @@ pycurl
lxml
pillow
Wand
numpy
numpy
matplotlib

View File

@ -10,4 +10,4 @@ formatter = logging.Formatter('%(asctime)s %(levelname)-5s %(message)s')
file_handler = FileHandler("oddb.log")
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)
logger.addHandler(StreamHandler(sys.stdout))
# logger.addHandler(StreamHandler(sys.stdout))

View File

@ -123,7 +123,9 @@ class ElasticSearchEngine(SearchEngine):
to_delete = helpers.scan(query={
"query": {
"match_all": {}
"term": {
"website_id": website_id
}
}
}, scroll="1m", client=self.es, index=self.index_name, request_timeout=120, routing=website_id)