mirror of
https://github.com/clearml/clearml-server
synced 2025-06-26 23:15:47 +00:00
Fix ES issue with capital letters in index name
This commit is contained in:
parent
4941ac70e0
commit
5f8ef808a3
@ -41,7 +41,7 @@ class EventSettings:
|
|||||||
|
|
||||||
def get_index_name(company_id: str, event_type: str):
|
def get_index_name(company_id: str, event_type: str):
|
||||||
event_type = event_type.lower().replace(" ", "_")
|
event_type = event_type.lower().replace(" ", "_")
|
||||||
return f"events-{event_type}-{company_id}"
|
return f"events-{event_type}-{company_id.lower()}"
|
||||||
|
|
||||||
|
|
||||||
def check_empty_data(es: Elasticsearch, company_id: str, event_type: EventType) -> bool:
|
def check_empty_data(es: Elasticsearch, company_id: str, event_type: EventType) -> bool:
|
||||||
|
Loading…
Reference in New Issue
Block a user