mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-19 03:35:11 +08:00
Fix:bug fix (#12423)
### What problem does this PR solve? change: initialize webhook configuration in webhook function remove debug print statement from airtable_connector remove redundant uuid import in imap_connector ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -162,6 +162,7 @@ async def webhook(agent_id: str):
|
||||
return get_data_error_result(code=RetCode.BAD_REQUEST,message="Invalid DSL format."),RetCode.BAD_REQUEST
|
||||
|
||||
# 4. Check webhook configuration in DSL
|
||||
webhook_cfg = {}
|
||||
components = dsl.get("components", {})
|
||||
for k, _ in components.items():
|
||||
cpn_obj = components[k]["obj"]
|
||||
|
||||
@ -75,7 +75,6 @@ class AirtableConnector(LoadConnector, PollConnector):
|
||||
batch: list[Document] = []
|
||||
|
||||
for record in records:
|
||||
print(record)
|
||||
record_id = record.get("id")
|
||||
fields = record.get("fields", {})
|
||||
created_time = record.get("createdTime")
|
||||
|
||||
@ -12,6 +12,7 @@ from email.utils import collapse_rfc2231_value, parseaddr
|
||||
from enum import Enum
|
||||
from typing import Any
|
||||
from typing import cast
|
||||
import uuid
|
||||
|
||||
import bs4
|
||||
from pydantic import BaseModel
|
||||
@ -635,7 +636,6 @@ def _parse_singular_addr(raw_header: str) -> tuple[str, str]:
|
||||
|
||||
if __name__ == "__main__":
|
||||
import time
|
||||
import uuid
|
||||
from types import TracebackType
|
||||
from common.data_source.utils import load_all_docs_from_checkpoint_connector
|
||||
|
||||
|
||||
Reference in New Issue
Block a user