Skip to content

Commit

Permalink
Adding jedi to dev dependencies, minor fix to trade command
Browse files Browse the repository at this point in the history
  • Loading branch information
DMcP89 committed Oct 1, 2024
1 parent d987c3f commit a8e872f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
7 changes: 6 additions & 1 deletion harambot/cogs/yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ async def roster(self, interaction: discord.Interaction, team_name: str):
async def trade(self, interaction: discord.Interaction):
logger.info("Command:Trade called in %i", interaction.guild_id)
await interaction.response.defer()
if self.yahoo_api.get_settings()["trade_ratify_type"] != "vote":
if (
self.yahoo_api.get_settings(guild_id=interaction.guild_id)[
"trade_ratify_type"
]
!= "vote"
):
await interaction.followup.send(
"Trade command only available for leagues with vote ratification"
)
Expand Down
38 changes: 35 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ psycopg2 = "^2.9.5"
mysqlclient = "^2.1.1"
yahoo-oauth = "^2.0"
cryptography = ">=42.0.5,<44.0.0"
yahoo-fantasy-api = ">=2.9.1"
yahoo-fantasy-api = ">=2.9.1"


[tool.poetry.group.dev.dependencies]
Expand All @@ -46,6 +46,7 @@ pytest-cov = "^4.0.0"
pre-commit = "^2.20.0"
flake8 = "^5.0.4"
black = ">=22.10,<25.0"
jedi = "^0.19.1"

[tool.poetry.scripts]
harambot = "harambot.bot:run"
Expand Down

0 comments on commit a8e872f

Please sign in to comment.