Skip to content

Commit

Permalink
[Birthday] More zemigrate fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexed01 committed Jan 20, 2025
1 parent 5172f81 commit 4596519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion birthday/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ async def zemigrate(self, ctx: commands.Context):
for day, users in guild_data.items():
for user_id, year in users.items():
dt = datetime.datetime.fromordinal(int(day))
year = int(year)

if year is None or year < MIN_BDAY_YEAR:
year = 1
Expand All @@ -642,7 +643,7 @@ async def zemigrate(self, ctx: commands.Context):
"month": dt.month,
"day": dt.day,
}
await self.config.member_from_ids(int(guild_id), user_id).birthday.set(
await self.config.member_from_ids(int(guild_id), int(user_id)).birthday.set(
new_data
)

Expand Down

0 comments on commit 4596519

Please sign in to comment.