mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 11:25:18 +00:00
quick fix
This commit is contained in:
parent
954727ad67
commit
5daaaf2c1d
1 changed files with 1 additions and 1 deletions
|
|
@ -48,9 +48,9 @@ class PRSimilarIssue:
|
|||
# check if index exists, and if repo is already indexed
|
||||
run_from_scratch = False
|
||||
if run_from_scratch: # for debugging
|
||||
pinecone.init(api_key=api_key, environment=environment)
|
||||
if not index_name in pinecone.list_indexes():
|
||||
get_logger().info('Removing index...')
|
||||
pinecone.init(api_key=api_key, environment=environment)
|
||||
pinecone.delete_index(index_name)
|
||||
get_logger().info('Done')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue