From daf320a0764178d2a98e6a48a60fd9b1b8772cde Mon Sep 17 00:00:00 2001 From: davfsa Date: Sun, 27 May 2018 11:27:24 +0200 Subject: [PATCH] Updated tag.py --- src/cogs/tag.py | 6 +++--- src/{resources => shared_libs}/tags.json | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename src/{resources => shared_libs}/tags.json (100%) diff --git a/src/cogs/tag.py b/src/cogs/tag.py index 84c6f2a..3bae890 100644 --- a/src/cogs/tag.py +++ b/src/cogs/tag.py @@ -7,7 +7,7 @@ import asyncio class Tag: def __init__(self, bot): self.bot = bot - with open("src/resources/tags.json", "r") as fp: + with open("src/shared_libs/tags.json", "r") as fp: json_data = fp.read() global tags tags = json.loads(json_data) @@ -59,7 +59,7 @@ class Tag: if not exists: tags.update({tag_name : tag_info}) - async with aiofiles.open("src/resources/tags.json", "w") as fp: + async with aiofiles.open("src/shared_libs/tags.json", "w") as fp: json_data = json.dumps(tags) await fp.write(json_data) @@ -84,7 +84,7 @@ class Tag: if found is not None: del tags[found] - async with aiofiles.open("src/resources/tags.json", "w") as fp: + async with aiofiles.open("src/shared_libs/tags.json", "w") as fp: json_data = json.dumps(tags) await fp.write(json_data) diff --git a/src/resources/tags.json b/src/shared_libs/tags.json similarity index 100% rename from src/resources/tags.json rename to src/shared_libs/tags.json