From d6dfa7e5c086f8ed0f3f1909e7e3b3beac732c3f Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 28 Sep 2016 19:43:50 -0500 Subject: [PATCH] Corrected error where dictionary was saved, instead of a list of dictionaries --- cogs/strawpoll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/strawpoll.py b/cogs/strawpoll.py index 3edee09..a80bc46 100644 --- a/cogs/strawpoll.py +++ b/cogs/strawpoll.py @@ -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})