1
0
Fork 0
mirror of synced 2024-06-03 11:14:33 +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: if boops is not None:
boops = boops['boops'] boops = boops['boops']
# If the booper has never booped the member provided, assure it's 0 # If the booper has never booped the member provided, assure it's 0
amount = boops.get(boopee.id, 0) + 1 amount = boops.get(str(boopee.id), 0) + 1
boops[boopee.id] = amount boops[str(boopee.id)] = amount
await utils.update_content('boops', {'boops': boops}, key) await utils.update_content('boops', {'boops': boops}, key)
else: else:
entry = {'member_id': booper.id, entry = {'member_id': booper.id,
'boops': {boopee.id: 1}} 'boops': {str(boopee.id): 1}}
await utils.add_content('boops', entry) await utils.add_content('boops', entry)
amount = 1 amount = 1