mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-26 20:08:38 +02:00
Airtable fix
This commit is contained in:
@@ -368,10 +368,8 @@ class AirtableConnector(LoadConnector):
|
|||||||
logger.exception(f"Failed to process record {record['id']}")
|
logger.exception(f"Failed to process record {record['id']}")
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
# After batch is complete, yield if we've hit the batch size
|
yield record_documents
|
||||||
if len(record_documents) >= self.batch_size:
|
record_documents = []
|
||||||
yield record_documents
|
|
||||||
record_documents = []
|
|
||||||
|
|
||||||
# Yield any remaining records
|
# Yield any remaining records
|
||||||
if record_documents:
|
if record_documents:
|
||||||
|
Reference in New Issue
Block a user