Skip to content

Commit

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

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

# pass InvalidateType to the objects for the entity_type.

async def cog_unload(self):
await self.github.close()

Expand Down

0 comments on commit 72af583

Please sign in to comment.