<gh_stars>0
# web_app/__init__.py
from flask import Flask
import os
from dotenv import load_dotenv

from web_app.routes.home_routes import home_routes
from web_app.routes.stats_routes import stats_routes


def create_app():
    app = Flask(__name__)

    app.register_blueprint(home_routes)
    app.register_blueprint(stats_routes)

    # app.run(debug=True)

    return app


if __name__ == "__main__":
    my_app = create_app()
    my_app.run(debug=True)

# web_app/__init__.py
from flask import Flask
import os
from dotenv import load_dotenv

from web_app.routes.home_routes import home_routes
from web_app.routes.stats_routes import stats_routes


def create_app():
    app = Flask(__name__)

    app.register_blueprint(home_routes)
    app.register_blueprint(stats_routes)

    # app.run(debug=True)

    return app


if __name__ == "__main__":
    my_app = create_app()
    my_app.run(debug=True)
# web_app/__init__.py # app.run(debug=True)