Merge branch 'main' into feature/cog-717-create-edge-embeddings-in-vector-databases

This commit is contained in:
hajdul88 2024-12-04 18:15:46 +01:00 committed by GitHub
commit 36a5a27f10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,10 @@ async def get_py_files_dict(repo_path):
py_files_dict = {}
for file_path in py_files_paths:
absolute_path = os.path.abspath(file_path)
if os.path.getsize(absolute_path) == 0:
continue
relative_path, source_code = await get_py_path_and_source(absolute_path)
py_files_dict[relative_path] = {"source_code": source_code}