mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 10:26:44 +00:00
hotfix attempt 1
This commit is contained in:
parent
dd3775cecd
commit
8ced4859f3
@ -21,3 +21,4 @@ lxml
|
|||||||
pillow
|
pillow
|
||||||
Wand
|
Wand
|
||||||
numpy
|
numpy
|
||||||
|
matplotlib
|
@ -10,4 +10,4 @@ formatter = logging.Formatter('%(asctime)s %(levelname)-5s %(message)s')
|
|||||||
file_handler = FileHandler("oddb.log")
|
file_handler = FileHandler("oddb.log")
|
||||||
file_handler.setFormatter(formatter)
|
file_handler.setFormatter(formatter)
|
||||||
logger.addHandler(file_handler)
|
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={
|
to_delete = helpers.scan(query={
|
||||||
"query": {
|
"query": {
|
||||||
"match_all": {}
|
"term": {
|
||||||
|
"website_id": website_id
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, scroll="1m", client=self.es, index=self.index_name, request_timeout=120, routing=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