Skip to content

Commit cdea2be

Browse files
authored
Merge pull request #15 from python-microservices/feature/add_error_handlers
Adapting method signature for overwriting.
2 parents 5bdd057 + 01821ff commit cdea2be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

project/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99

1010
class MyMicroservice(Microservice):
11-
def init_libs(self, app):
12-
db.init_app(app)
13-
with app.test_request_context():
11+
def init_libs(self):
12+
db.init_app(self.application)
13+
with self.application.test_request_context():
1414
db.create_all()
1515

1616

0 commit comments

Comments
 (0)