aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--metricity/bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/metricity/bot.py b/metricity/bot.py
index 38e12a6..42924b1 100644
--- a/metricity/bot.py
+++ b/metricity/bot.py
@@ -118,7 +118,7 @@ async def sync_channels(guild: Guild) -> None:
active_thread_ids = []
for thread in guild.threads:
- active_thread_ids.append(thread.id)
+ active_thread_ids.append(str(thread.id))
if thread.parent and thread.parent.category:
if thread.parent.category.id in BotConfig.ignore_categories:
continue
@@ -136,7 +136,7 @@ async def sync_channels(guild: Guild) -> None:
async with db.transaction():
async for db_thread in Thread.query.gino.iterate():
- await db_thread.update(archived=db_thread.id in active_thread_ids).apply()
+ await db_thread.update(archived=db_thread.id not in active_thread_ids).apply()
channel_sync_in_progress.set()