Feat/firecrawl data source (#5232)
Co-authored-by: Nicolas <nicolascamara29@gmail.com> Co-authored-by: chenhe <guchenhe@gmail.com> Co-authored-by: takatost <takatost@gmail.com>
This commit is contained in:
@@ -270,7 +270,7 @@ class Document(db.Model):
|
||||
255), nullable=False, server_default=db.text("'text_model'::character varying"))
|
||||
doc_language = db.Column(db.String(255), nullable=True)
|
||||
|
||||
DATA_SOURCES = ['upload_file', 'notion_import']
|
||||
DATA_SOURCES = ['upload_file', 'notion_import', 'website_crawl']
|
||||
|
||||
@property
|
||||
def display_status(self):
|
||||
@@ -322,7 +322,7 @@ class Document(db.Model):
|
||||
'created_at': file_detail.created_at.timestamp()
|
||||
}
|
||||
}
|
||||
elif self.data_source_type == 'notion_import':
|
||||
elif self.data_source_type == 'notion_import' or self.data_source_type == 'website_crawl':
|
||||
return json.loads(self.data_source_info)
|
||||
return {}
|
||||
|
||||
|
Reference in New Issue
Block a user