1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Cast ID to a str

This commit is contained in:
phxntxm 2017-03-08 01:29:05 -06:00
parent e482f671d8
commit 18e5648b41

View file

@ -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