From 18e5648b41f22d18a02157f73f92be7dbce803e8 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 8 Mar 2017 01:29:05 -0600 Subject: [PATCH] Cast ID to a str --- cogs/interaction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/interaction.py b/cogs/interaction.py index bd56e66..98330e0 100644 --- a/cogs/interaction.py +++ b/cogs/interaction.py @@ -264,13 +264,13 @@ class Interaction: if boops is not None: boops = boops['boops'] # If the booper has never booped the member provided, assure it's 0 - amount = boops.get(boopee.id, 0) + 1 - boops[boopee.id] = amount + amount = boops.get(str(boopee.id), 0) + 1 + boops[str(boopee.id)] = amount await utils.update_content('boops', {'boops': boops}, key) else: entry = {'member_id': booper.id, - 'boops': {boopee.id: 1}} + 'boops': {str(boopee.id): 1}} await utils.add_content('boops', entry) amount = 1