Fix mistake in benchmark.utils capitalize

This commit is contained in:
2023-06-07 23:45:08 +02:00
parent c27a0cf61f
commit 39b22135eb
4 changed files with 45 additions and 2 deletions

44
dbseed_docker.py Normal file
View File

@@ -0,0 +1,44 @@
from app.models import Benchmark, db, User
from app import app
app = app.create_app()
with app.app_context():
db.drop_all()
db.create_all()
b = Benchmark(
name="discretizbench",
folder="/app/discretizbench",
description="Experiments with local discretization and Bayesian classifiers",
)
db.session.add(b)
b = Benchmark(
name="odtebench",
folder="/app/odtebench",
description="Experiments with STree and Ensemble classifiers",
)
db.session.add(b)
b = Benchmark(
name="covbench",
folder="/app/covbench",
description="Experiments with COVID-19 dataset",
)
db.session.add(b)
u = User(
username="rmontanana",
email="rmontanana@gmail.com",
admin=True,
benchmark_id=1,
)
u.set_password("patata")
u1 = User(
username="guest",
email="guest@example.com",
admin=False,
benchmark_id=1,
)
u1.set_password("guest")
db.session.add(b)
db.session.add(u)
db.session.add(u1)
db.session.commit()