fix(backup): convert author.id to a string before hashing
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 15s
Actions / Build Documentation (MkDocs) (push) Successful in 11s

This commit is contained in:
Seaswimmer 2024-02-02 02:07:21 -05:00
parent 21e256c4fb
commit 09302403b8
Signed by: 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"]