From 87a261d7efc046843f19de16af274a6650e705c4 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 19 Sep 2024 14:21:18 +0200 Subject: [PATCH] refactor: remove unused config settings Simplified app initialization by removing the `Config` class and cleaning up unused configuration settings. This reduces redundancy and potential confusion in the codebase. --- src/small/app.py | 4 +--- src/small/const.py | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 src/small/const.py diff --git a/src/small/app.py b/src/small/app.py index f11b3ce..e424dc0 100644 --- a/src/small/app.py +++ b/src/small/app.py @@ -2,13 +2,11 @@ from flask import Flask from os import environ -from .const import Config from .views import home, article, error, proxy -def create_app(config_class=Config): +def create_app(): app = Flask(__name__) - app.config.from_object(config_class) app.register_blueprint(home.bp) app.register_blueprint(article.bp) diff --git a/src/small/const.py b/src/small/const.py deleted file mode 100644 index 5b84b69..0000000 --- a/src/small/const.py +++ /dev/null @@ -1,3 +0,0 @@ -class Config: - MEDIUM_API_URL = "https://medium.com/_/graphql" - GITHUB_API_URL = "https://api.github.com"