mirror of
https://github.com/simon987/od-database.git
synced 2025-04-10 14:06:45 +00:00
hotfix attempt 1
This commit is contained in:
parent
dd3775cecd
commit
8ced4859f3
@ -20,4 +20,5 @@ pycurl
|
||||
lxml
|
||||
pillow
|
||||
Wand
|
||||
numpy
|
||||
numpy
|
||||
matplotlib
|
@ -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))
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user