Skip to content

Commit

Permalink
Merge pull request #15 from python-microservices/feature/add_error_ha…
Browse files Browse the repository at this point in the history
…ndlers

Adapting method signature for overwriting.
  • Loading branch information
avara1986 committed Nov 29, 2018
2 parents 5bdd057 + 01821ff commit cdea2be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@


class MyMicroservice(Microservice):
def init_libs(self, app):
db.init_app(app)
with app.test_request_context():
def init_libs(self):
db.init_app(self.application)
with self.application.test_request_context():
db.create_all()


Expand Down

0 comments on commit cdea2be

Please sign in to comment.