1
0
Fork 0
mirror of synced 2024-06-29 11:40:20 +12:00

Corrected error where dictionary was saved, instead of a list of dictionaries

This commit is contained in:
phxntxm 2016-09-28 19:43:50 -05:00
parent 891b7f018a
commit d6dfa7e5c0

View file

@ -125,7 +125,7 @@ class Strawpoll:
'title': title}
entry = {'server_id': ctx.message.server.id,
'polls': sub_entry}
'polls': [sub_entry]}
update = {'polls': r.row['polls'].append(sub_entry)}
if not await config.update_content('strawpolls', update, r_filter):
await config.add_content('strawpolls', entry, {'poll_id': poll_id})