Corrected error where dictionary was saved, instead of a list of dictionaries
This commit is contained in:
parent
891b7f018a
commit
d6dfa7e5c0
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue