mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 17:03:29 +03:00
fix(parsers.github): AttributeError
when crawling github repository. (#667)
When attempting to add new files from a crawled github repository, quivr will always fail due to a reference to a non-existant `File.add_files_to_brain` method. Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
This commit is contained in:
parent
eb779f9e58
commit
b3455d3686
@ -80,7 +80,6 @@ async def process_github(
|
||||
file_exists_in_brain = file.file_already_exists_in_brain(brain_id)
|
||||
|
||||
if not file_exists_in_brain:
|
||||
file.add_file_to_brain(brain_id) # pyright: ignore reportPrivateUsage=none
|
||||
brain = Brain(id=brain_id)
|
||||
file.link_file_to_brain(brain)
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user