mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 17:47:02 +03:00
Update movie_lister example
This commit is contained in:
parent
8fc14498f5
commit
a07bb582ec
|
@ -24,8 +24,7 @@ from settings import MOVIES_DB_PATH
|
|||
class ApplicationModule(catalogs.DeclarativeCatalog):
|
||||
"""Catalog of application component providers."""
|
||||
|
||||
database = providers.Singleton(sqlite3.connect,
|
||||
MOVIES_DB_PATH)
|
||||
database = providers.Singleton(sqlite3.connect, MOVIES_DB_PATH)
|
||||
|
||||
|
||||
@catalogs.override(MoviesModule)
|
||||
|
|
Loading…
Reference in New Issue
Block a user