Skip to content

Commit 35bb39c

Browse files
committed
fix: club move on passation
1 parent f3dd141 commit 35bb39c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/services/club.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import time
34
from typing import TYPE_CHECKING
45
from urllib.parse import urljoin
56

@@ -167,7 +168,8 @@ async def handover(
167168
lambda c: c.name.endswith("[inactif]"),
168169
sorted(guild.categories, key=lambda c: c.position),
169170
)
170-
await category.move(above=highest_inactive)
171+
if highest_inactive:
172+
await category.move(before=highest_inactive)
171173

172174
async def stop_club(self, club: Club, guild: Guild):
173175
role_pres = utils.get(guild.roles, id=club.president_role_id)

0 commit comments

Comments
 (0)