From 08d14b61d1d41393f3e9d2c981b977baa67d008e Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Wed, 28 Feb 2024 15:27:44 -0500 Subject: [PATCH] removed src folder, refactored --- {src/api => api}/__innit__.py | 0 {src/api => api}/get_breeding_pairs.py | 2 +- {src/api => api}/get_breeding_usage.py | 2 +- {src/api => api}/get_families.py | 0 {src/api => api}/get_monster_stats.py | 0 {src/api => api}/get_monsters.py | 0 {src/api => api}/get_skills_data.py | 0 app.py | 19 ++++++++----------- {src/util => utils}/__innit__.py | 0 {src/util => utils}/serve_media.py | 0 {src/util => utils}/utils.py | 0 11 files changed, 10 insertions(+), 13 deletions(-) rename {src/api => api}/__innit__.py (100%) rename {src/api => api}/get_breeding_pairs.py (95%) rename {src/api => api}/get_breeding_usage.py (95%) rename {src/api => api}/get_families.py (100%) rename {src/api => api}/get_monster_stats.py (100%) rename {src/api => api}/get_monsters.py (100%) rename {src/api => api}/get_skills_data.py (100%) rename {src/util => utils}/__innit__.py (100%) rename {src/util => utils}/serve_media.py (100%) rename {src/util => utils}/utils.py (100%) diff --git a/src/api/__innit__.py b/api/__innit__.py similarity index 100% rename from src/api/__innit__.py rename to api/__innit__.py diff --git a/src/api/get_breeding_pairs.py b/api/get_breeding_pairs.py similarity index 95% rename from src/api/get_breeding_pairs.py rename to api/get_breeding_pairs.py index 2092acc..63c59ca 100644 --- a/src/api/get_breeding_pairs.py +++ b/api/get_breeding_pairs.py @@ -1,5 +1,5 @@ from flask import jsonify, Blueprint -from ..util.utils import breeding_pair_data +from utils.utils import breeding_pair_data get_breeding_pairs_bp = Blueprint('breeding_pairs',__name__) diff --git a/src/api/get_breeding_usage.py b/api/get_breeding_usage.py similarity index 95% rename from src/api/get_breeding_usage.py rename to api/get_breeding_usage.py index fd57cc6..56aec69 100644 --- a/src/api/get_breeding_usage.py +++ b/api/get_breeding_usage.py @@ -1,5 +1,5 @@ from flask import jsonify, Blueprint -from ..util.utils import breeding_pair_data +from utils.utils import breeding_pair_data get_breeding_usage_bp = Blueprint('breeding_usage',__name__) diff --git a/src/api/get_families.py b/api/get_families.py similarity index 100% rename from src/api/get_families.py rename to api/get_families.py diff --git a/src/api/get_monster_stats.py b/api/get_monster_stats.py similarity index 100% rename from src/api/get_monster_stats.py rename to api/get_monster_stats.py diff --git a/src/api/get_monsters.py b/api/get_monsters.py similarity index 100% rename from src/api/get_monsters.py rename to api/get_monsters.py diff --git a/src/api/get_skills_data.py b/api/get_skills_data.py similarity index 100% rename from src/api/get_skills_data.py rename to api/get_skills_data.py diff --git a/app.py b/app.py index c9b8be3..58ff465 100644 --- a/app.py +++ b/app.py @@ -1,17 +1,14 @@ from flask import Flask, render_template -from src.util.utils import * +from api.get_monsters import * +from api.get_families import * +from api.get_monster_stats import * +from api.get_breeding_pairs import * +from api.get_breeding_usage import * +from api.get_skills_data import * -from src.api.get_monsters import * -from src.api.get_families import * -from src.api.get_monster_stats import * -from src.api.get_breeding_pairs import * -from src.api.get_breeding_usage import * -from src.api.get_skills_data import * - -from src.util.serve_media import * - -#from src.views.skills import * +from utils.utils import * +from utils.serve_media import * app = Flask(__name__) diff --git a/src/util/__innit__.py b/utils/__innit__.py similarity index 100% rename from src/util/__innit__.py rename to utils/__innit__.py diff --git a/src/util/serve_media.py b/utils/serve_media.py similarity index 100% rename from src/util/serve_media.py rename to utils/serve_media.py diff --git a/src/util/utils.py b/utils/utils.py similarity index 100% rename from src/util/utils.py rename to utils/utils.py