From 3b1c21aa85c591f7adeb28377bd41496b21a3a23 Mon Sep 17 00:00:00 2001 From: PSNAppZ Date: Thu, 22 Aug 2024 12:00:08 +0530 Subject: [PATCH] Remove controller init from celery project app.py --- .../src/openg2p_g2p_bridge_example_bank_celery/app.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/openg2p-g2p-bridge-example-bank-celery/src/openg2p_g2p_bridge_example_bank_celery/app.py b/openg2p-g2p-bridge-example-bank-celery/src/openg2p_g2p_bridge_example_bank_celery/app.py index e4b6055..73618c4 100644 --- a/openg2p-g2p-bridge-example-bank-celery/src/openg2p_g2p_bridge_example_bank_celery/app.py +++ b/openg2p-g2p-bridge-example-bank-celery/src/openg2p_g2p_bridge_example_bank_celery/app.py @@ -7,11 +7,6 @@ from celery import Celery from openg2p_fastapi_common.app import Initializer as BaseInitializer -from openg2p_g2p_bridge_example_bank_api.controllers import ( - BlockFundsController, - FundAvailabilityController, - PaymentController, -) from sqlalchemy import create_engine from .utils import Mt940Writer @@ -23,11 +18,6 @@ class Initializer(BaseInitializer): def initialize(self, **kwargs): super().initialize() - BlockFundsController().post_init() - FundAvailabilityController().post_init() - PaymentController().post_init() - - def get_engine(): if _config.db_datasource: db_engine = create_engine(_config.db_datasource)