Skip to content

Commit

Permalink
There
Browse files Browse the repository at this point in the history
  • Loading branch information
JDJGInc committed Feb 25, 2024
1 parent 72af583 commit e1ed162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,11 @@ async def cog_load(self):
self.tio = async_tio.Tio(session=self.bot.session)

self.invalidation_config = [
utils.InvalidationConfig(record.entity_id, record.entity_type)
utils.InvalidationConfig(record.entity_id, record.entity_type, self.bot)
for record in await self.bot.db.fetch("SELECT * FROM invalidation_config")
]
self.invalidation_opt_out = [
utils.InvalidationConfig(record.entity_id, record.entity_type)
utils.InvalidationConfig(record.entity_id, record.entity_type, self.bot)
for record in await self.bot.db.fetch("SELECT * FROM invalidation_out")
]

Expand Down

3 comments on commit e1ed162

@JDJGInc
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        if not message.guild:
            # use only dm and everywhere types in checking

            return

        if message.guild:

            # check entity type everywhere and guild.

            return

@JDJGInc
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JDJGInc
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# filter based on entity_type

(cog_load)

async def add_invalidation_entity(entity_id: int, entity_type: InvalidateType, bot: JDBot, in_choosen=True):

helper objects look really weird.

Please sign in to comment.