From 504a33f8f7f3ffe79d7a3dde77518ff8b0afa5ce Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 12 Sep 2023 21:06:04 -0500 Subject: [PATCH] Hash update for marketplace --- cogs/economy.py | 2 +- db_calls.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/economy.py b/cogs/economy.py index b7fa6d2..964c7d5 100644 --- a/cogs/economy.py +++ b/cogs/economy.py @@ -728,7 +728,7 @@ class Economy(commands.Cog): ) if not purchase: await question.edit( - f'That didn\'t go through for some reason. If this happens again, go ping the shit out of Cal.', + content=f'That didn\'t go through for some reason. If this happens again, go ping the shit out of Cal.', view=None ) return diff --git a/db_calls.py b/db_calls.py index 56f7e20..31221b6 100644 --- a/db_calls.py +++ b/db_calls.py @@ -178,8 +178,8 @@ async def post_to_dex(player, team): def team_hash(team): - hash_string = f'{team["abbrev"]}{team["gmid"] / 123:.0f}' - return hash(hash_string) + hash_string = f'{team["sname"][-1]}{team["gmid"] / 6950123:.0f}{team["sname"][-2]}{team["gmid"] / 42069123:.0f}' + return hash_string