diff options
| author | 2020-11-19 11:30:33 +0100 | |
|---|---|---|
| committer | 2020-11-19 11:30:33 +0100 | |
| commit | de367839793873c4ddfa3ce13cf25386ab0bb17f (patch) | |
| tree | ff390a7917002ebc608c2e13333df03a94466eac /bot/exts/halloween/candy_collection.py | |
| parent | Merge pull request #517 from python-discord/sebastiaan/backend/remove-dockerh... (diff) | |
| parent | Split lint and build jobs into separate workflows (diff) | |
Merge pull request #520 from python-discord/sebastiaan/backend/fix-flake8-check
Fix flake8 check in CI and separate Lint and Build jobs into separate workflows
Diffstat (limited to 'bot/exts/halloween/candy_collection.py')
| -rw-r--r-- | bot/exts/halloween/candy_collection.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/halloween/candy_collection.py b/bot/exts/halloween/candy_collection.py index 7bdc6ef0..bd0b90cc 100644 --- a/bot/exts/halloween/candy_collection.py +++ b/bot/exts/halloween/candy_collection.py @@ -1,7 +1,7 @@  import json  import logging  import random -from pathlib import Path +# from pathlib import Path  from typing import Union  import discord @@ -10,7 +10,7 @@ from discord.ext import commands  from bot.constants import Channels, Month  from bot.utils.decorators import in_month -# TODO: Implement substitutes for volume-persistent methods. +# TODO: Implement substitutes for volume-persistent methods.  # noqa: T000  # from bot.utils.persist import make_persistent  log = logging.getLogger(__name__) @@ -39,7 +39,7 @@ class CandyCollection(commands.Cog):      def __init__(self, bot: commands.Bot):          self.bot = bot -        self.json_file = make_persistent(Path("bot", "resources", "halloween", "candy_collection.json")) +        # self.json_file = make_persistent(Path("bot", "resources", "halloween", "candy_collection.json"))          with self.json_file.open() as fp:              candy_data = json.load(fp)  |