From 7d54882549e5a13f915a15c8bedfdd5a88d16fbc Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 16 Mar 2017 15:19:48 -0500 Subject: [PATCH] Convert to string for polls --- cogs/strawpoll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/strawpoll.py b/cogs/strawpoll.py index 1b038f1..f07baea 100644 --- a/cogs/strawpoll.py +++ b/cogs/strawpoll.py @@ -40,7 +40,7 @@ class Strawpoll: RESULT: A list of all polls setup on this server""" # Strawpolls cannot be 'deleted' so to handle whether a poll is running or not on a server # Just save the poll, which can then be removed when it should not be "running" anymore - r_filter = {'server_id': ctx.message.guild.id} + r_filter = {'server_id': str(ctx.message.guild.id)} polls = await config.get_content('strawpolls', r_filter) # Check if there are any polls setup on this server try: