mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-25 06:46:55 +01:00
Bugfix in scripts/admin.py
This commit is contained in:
parent
d54ef17061
commit
c035c0efa9
1 changed files with 0 additions and 5 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import sys
|
||||
import os, os.path
|
||||
from plugins.mongodb_datasource.migration_handler import MongoDbMigrationHandler
|
||||
|
||||
sys.path.append(os.path.dirname(os.getcwd()+'/..'))
|
||||
from lodel.settings.settings import Settings as settings
|
||||
|
|
@ -23,7 +22,3 @@ def refresh_dyncode(model_file, translator, output_filename):
|
|||
out_fd.write(dyncode)
|
||||
out_fd.close()
|
||||
|
||||
def init_db(conn_args, editorial_model):
|
||||
migration_handler = MongoDbMigrationHandler(editorial_model, conn_args)
|
||||
migration_handler.init_db()
|
||||
migration_handler.database.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue