Corrected error where a pendulum object was attempted to be serialzed
This commit is contained in:
parent
c61838886a
commit
009d161474
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class Strawpoll:
|
||||||
|
|
||||||
all_polls = config.getContent('strawpolls') or {}
|
all_polls = config.getContent('strawpolls') or {}
|
||||||
server_polls = all_polls.get(ctx.message.server.id) or {}
|
server_polls = all_polls.get(ctx.message.server.id) or {}
|
||||||
server_polls[data['id']] = {'author': ctx.message.author.id,'date': pendulum.utcnow()}
|
server_polls[data['id']] = {'author': ctx.message.author.id,'date': str(pendulum.utcnow())}
|
||||||
all_polls[ctx.message.server.id] = server_polls
|
all_polls[ctx.message.server.id] = server_polls
|
||||||
config.saveContent('strawpolls',all_polls)
|
config.saveContent('strawpolls',all_polls)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue