From 4540c36d22c438297d84d2cb8f375bdb690a79ff Mon Sep 17 00:00:00 2001 From: annihilator708 Date: Wed, 23 May 2018 19:40:23 +0200 Subject: [PATCH] Fix issue with gitignore, (i hope), Fixed import error. revert raatty change in self.ownerlist. still not working --- .gitignore | 4 ++-- src/cogs/git.py | 6 ++++-- src/config/config.py | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index e9d30ac..1219eb2 100644 --- a/.gitignore +++ b/.gitignore @@ -108,8 +108,8 @@ venv.bak/ # mypy .mypy_cache/ -/src/config/Config.json -/src/config/PrivateConfig.json +src/config/Config.json +src/config/PrivateConfig.json # Ignore dockerfiles docker-compose.yml \ No newline at end of file diff --git a/src/cogs/git.py b/src/cogs/git.py index a49ec95..e95cfc3 100644 --- a/src/cogs/git.py +++ b/src/cogs/git.py @@ -30,11 +30,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import discord from discord.ext import commands import logging -from ..shared_libs.utils import paginate, run_command, loggable +from src.shared_libs.utils import paginate, run_command +from src.shared_libs.loggable import Loggable + import asyncio -class Git(loggable.Loggable): +class Git(Loggable): def __init__(self, bot): self.bot = bot diff --git a/src/config/config.py b/src/config/config.py index 4604a78..0115c11 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -17,8 +17,6 @@ class LoadConfig: # Initialize config self.ownerlist = self.config["ownerlist"] - if self.ownerlist == []: - self.ownerlist = [int(i) for i in os.getenv('ownerlist').split(',')] self.defaultprefix = self.config["prefix"] self.version = self.config["version"] self.display_name = self.config["display_name"]