Skip to content

Commit

Permalink
remove(rlstats): externally-sourced tier breakdown
Browse files Browse the repository at this point in the history
Fixes #58
  • Loading branch information
Jackenmen committed Aug 7, 2023
1 parent 44fb111 commit 482f218
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions rlstats/rlstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
from redbot.core.utils.chat_formatting import bold, inline
from redbot.core.utils.menus import start_adding_reactions
from redbot.core.utils.predicates import ReactionPredicate
from rlapi.ext.tier_breakdown.trackernetwork import get_tier_breakdown

from . import errors
from .abc import CogAndABCMeta
Expand Down Expand Up @@ -223,9 +222,6 @@ async def cog_load(self) -> None:
tier_breakdown = self._convert_numbers_in_breakdown(
await self.config.tier_breakdown()
)
if not tier_breakdown:
tier_breakdown = await get_tier_breakdown(self.rlapi_client)
await self.config.tier_breakdown.set(tier_breakdown)
self.rlapi_client.tier_breakdown = tier_breakdown
self.extramodes_template.bg_overlay = await self.config.extramodes_overlay()
self.competitive_template.bg_overlay = await self.config.competitive_overlay()
Expand Down
11 changes: 0 additions & 11 deletions rlstats/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from redbot.core.commands import NoParseOptional as Optional
from redbot.core.config import Value
from redbot.core.utils.views import SetApiView
from rlapi.ext.tier_breakdown.trackernetwork import get_tier_breakdown

from .abc import MixinMeta
from .image import RLStatsImageTemplate
Expand Down Expand Up @@ -53,16 +52,6 @@ async def credentials(self, ctx: commands.Context) -> None:
),
)

@rlset.command(name="updatebreakdown")
async def updatebreakdown(self, ctx: commands.Context) -> None:
"""Update tier breakdown."""
await ctx.send("Updating tier breakdown...")
async with ctx.typing():
tier_breakdown = await get_tier_breakdown(self.rlapi_client)
await self.config.tier_breakdown.set(tier_breakdown)
self.rlapi_client.tier_breakdown = tier_breakdown
await ctx.send("Tier breakdown updated.")

@rlset.group(name="image")
async def rlset_bgimage(self, ctx: commands.Context) -> None:
"""Set background for stats image."""
Expand Down

0 comments on commit 482f218

Please sign in to comment.