Merge branch 'master' of github.com:EndenDragon/Titan

This commit is contained in:
Jeremy Zhang 2017-06-10 01:39:15 +00:00
commit dfe463ecaa

View File

@ -199,7 +199,7 @@ def update_administrate_guild(guild_id):
db_guild.mentions_limit = request.form.get("mentions_limit", db_guild.mentions_limit) db_guild.mentions_limit = request.form.get("mentions_limit", db_guild.mentions_limit)
discordio = request.form.get("discordio", db_guild.discordio) discordio = request.form.get("discordio", db_guild.discordio)
if discordio.strip() == "": if discordio and discordio.strip() == "":
discordio = None discordio = None
db_guild.discordio = discordio db_guild.discordio = discordio
db.session.commit() db.session.commit()