mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-31 21:42:02 +08:00
Fix: Langfuse update model has no fields attribute (#6453)
### What problem does this PR solve? Langfuse update model has no fields attribute ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
200b6f55c6
commit
66e557b6c0
@ -43,8 +43,9 @@ class TenantLangfuseService(CommonService):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def update_by_tenant(cls, tenant_id, langfuse_keys):
|
def update_by_tenant(cls, tenant_id, langfuse_keys):
|
||||||
fields = ["tenant_id", "host", "secret_key", "public_key"]
|
langfuse_keys["update_time"] = current_timestamp()
|
||||||
return cls.model.update(**langfuse_keys).fields(*fields).where(cls.model.tenant_id == tenant_id).execute()
|
langfuse_keys["update_date"] = datetime_format(datetime.now())
|
||||||
|
return cls.model.update(**langfuse_keys).where(cls.model.tenant_id == tenant_id).execute()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def save(cls, **kwargs):
|
def save(cls, **kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user