mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-01 20:10:55 +01:00
Changed the init_db method in the admin module of the scripts package to use an editorial model as argument
This commit is contained in:
parent
46732d6ce0
commit
84cddbf67f
1 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ def refresh_dyncode(model_file, translator, output_filename):
|
|||
out_fd.write(dyncode)
|
||||
out_fd.close()
|
||||
|
||||
def init_db(conn_args):
|
||||
migration_handler = MongoDbMigrationHandler(conn_args=conn_args)
|
||||
def init_db(conn_args, editorial_model):
|
||||
migration_handler = MongoDbMigrationHandler(editorial_model, conn_args)
|
||||
migration_handler._install_collections()
|
||||
migration_handler.database.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue