1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Corrected error where a pendulum object was attempted to be serialzed

This commit is contained in:
Phxntxm 2016-08-13 22:53:43 -05:00
parent c61838886a
commit 009d161474

View file

@ -80,7 +80,7 @@ class Strawpoll:
all_polls = config.getContent('strawpolls') 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
config.saveContent('strawpolls',all_polls)