Cast ID to a str
This commit is contained in:
parent
e482f671d8
commit
18e5648b41
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue