fix(backup): convert author.id to a string before hashing

This commit is contained in:
Seaswimmer 2024-02-02 02:07:21 -05:00
parent 21e256c4fb
commit 09302403b8
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -88,7 +88,7 @@ class Bible(commands.Cog):
"t": data["meta"]["fumsToken"],
"dId": self.bot.user.id,
"sId": ctx.message.created_at.timestamp(),
"uId": hash(ctx.author.id),
"uId": hash(str(ctx.author.id)),
}
async with self.session.get(fums_url, params=fums_params) as response:
@ -97,7 +97,7 @@ class Bible(commands.Cog):
response.status,
self.bot.user.id,
ctx.message.created_at.timestamp(),
hash(ctx.author.id),
hash(str(ctx.author.id)),
ctx.author.id,
)
return data["data"]