21 lines
551 B
Python
21 lines
551 B
Python
from webinterface import create_app, Config, db
|
|
|
|
import datetime
|
|
|
|
config = Config()
|
|
#config.SQLALCHEMY_DATABASE_URI = 'sqlite:///GranConcepcion-{}.db'.format(datetime.datetime.now().strftime("%Y%m%d%H%M"))
|
|
config.SQLALCHEMY_DATABASE_URI = 'sqlite:///GranConcepcion-process.db'
|
|
config.DEBUG = True
|
|
|
|
iapp = create_app(config)
|
|
|
|
|
|
with iapp.app_context():
|
|
|
|
from webinterface.models.cargamodelo import load_dataset, completa_dataset, agrega_paraderos
|
|
# db.create_all()
|
|
|
|
# load_dataset()
|
|
completa_dataset()
|
|
|
|
agrega_paraderos() |