Skip to content

Commit

Permalink
Removed decode_id
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfior committed Nov 28, 2024
1 parent 2d14ef4 commit 4a09686
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions prediction_market_agent/db/pinecone_handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import base64
import hashlib
import sys
import typing as t
Expand Down Expand Up @@ -57,9 +56,6 @@ def encode_text(self, text: str) -> str:
# We use SHA-256 for generating IDs with fixed length.
return hashlib.sha256(text.encode()).hexdigest()

def decode_id(self, id: str) -> str:
return base64.b64decode(id).decode("utf-8")

def filter_markets_already_in_index(
self, markets: list[OmenMarket]
) -> list[OmenMarket]:
Expand Down

0 comments on commit 4a09686

Please sign in to comment.