From 8be753b0c3be86514a73ce3505096665393996e0 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 9 Sep 2017 04:20:39 +0000 Subject: [PATCH] Remove mysql specific utf config to discordbot utilities files --- discordbot/cleanup_db_messages.py | 2 +- discordbot/fetch_last_messages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/discordbot/cleanup_db_messages.py b/discordbot/cleanup_db_messages.py index bcbaef3..284a89a 100644 --- a/discordbot/cleanup_db_messages.py +++ b/discordbot/cleanup_db_messages.py @@ -61,7 +61,7 @@ class Titan(discord.Client): print('------') try: - await self.database.connect(config["database-uri"] + "?charset=utf8mb4") + await self.database.connect(config["database-uri"]) except Exception: self.logger.error("Unable to connect to specified database!") traceback.print_exc() diff --git a/discordbot/fetch_last_messages.py b/discordbot/fetch_last_messages.py index fb70226..8aa7700 100644 --- a/discordbot/fetch_last_messages.py +++ b/discordbot/fetch_last_messages.py @@ -60,7 +60,7 @@ class Titan(discord.Client): print('------') try: - await self.database.connect(config["database-uri"] + "?charset=utf8mb4") + await self.database.connect(config["database-uri"]) except Exception: self.logger.error("Unable to connect to specified database!") traceback.print_exc()