Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
evangriffiths committed Feb 8, 2024
1 parent 6e0194b commit 19a1dd7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 68 deletions.
61 changes: 0 additions & 61 deletions agent.py

This file was deleted.

4 changes: 1 addition & 3 deletions prediction_market_agent/deploy/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ class DeploymentType(str, Enum):

class DeployableAgent(BaseModel):
def pick_markets(self, markets: list[AgentMarket]) -> list[AgentMarket]:
if len(markets) > 1:
return markets[:1]
return markets
return markets[:1]

def answer_binary_market(self, market: AgentMarket) -> bool:
raise NotImplementedError("This method should be implemented by the subclass")
Expand Down
4 changes: 0 additions & 4 deletions prediction_market_agent/deploy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,3 @@ def get_gcp_function(fname: str) -> Function:

def gcp_function_is_active(fname: str) -> bool:
return get_gcp_function(fname).state == Function.State.ACTIVE


def convert_seconds_to_cron_string(seconds: int) -> str:
return f"*/* * * * *"

0 comments on commit 19a1dd7

Please sign in to comment.