From 060eb0b0acbb9e96b8217ba8e9675254e93efa88 Mon Sep 17 00:00:00 2001 From: Alex Nork <48630278+alex-nork@users.noreply.github.com> Date: Mon, 10 Jul 2023 20:13:00 +0000 Subject: [PATCH] remove todo --- chirps/scan/views.py | 1 - chirps/target/providers/pinecone.py | 1 - 2 files changed, 2 deletions(-) diff --git a/chirps/scan/views.py b/chirps/scan/views.py index 76eeca78..5b5e8618 100644 --- a/chirps/scan/views.py +++ b/chirps/scan/views.py @@ -58,7 +58,6 @@ def create(request): @login_required def dashboard(request): """Render the scan dashboard.""" - user_scans = Scan.objects.filter(user=request.user) # We're going to perform some manual aggregation (sqlite doesn't support calls to distinct()) diff --git a/chirps/target/providers/pinecone.py b/chirps/target/providers/pinecone.py index 5233474e..10a32d17 100644 --- a/chirps/target/providers/pinecone.py +++ b/chirps/target/providers/pinecone.py @@ -35,7 +35,6 @@ def decrypted_api_key(self): def search(self, query: str, max_results: int) -> list[str]: """Search the Pinecone target with the specified query.""" - # TODO: (alexn) uncomment when embeddings have been figured out # pinecone_lib.init(api_key=self.api_key, environment=self.environment) # # Assuming the query is converted to a vector of the same dimension as the index. We should re-visit this.