1
0
Fork 0
mirror of synced 2024-05-20 12:32:26 +12:00

Convert to string for polls

This commit is contained in:
Phxntxm 2017-03-16 15:19:48 -05:00
parent 209e1522f1
commit 7d54882549

View file

@ -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: