Skip to content

Commit

Permalink
Remove controller init from celery project app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PSNAppz committed Aug 22, 2024
1 parent fe26685 commit 3b1c21a
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 3b1c21a

Please sign in to comment.