diff --git a/.gitignore b/.gitignore index 31a95de..c1f5f0a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ migrations/__pycache__/ migrations/versions/__pycache__/ export/ app/__pycache__/ - +app.db \ No newline at end of file diff --git a/README.md b/README.md index 0430159..ec96941 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,7 @@ flask run +### Pour initialiser la BDD + + flask db migrate + diff --git a/app.db b/app.db index e877089..2979199 100644 Binary files a/app.db and b/app.db differ diff --git a/app/forms.py b/app/forms.py index 8d61fac..f5e2e3d 100644 --- a/app/forms.py +++ b/app/forms.py @@ -135,7 +135,6 @@ class Form(ModelForm): fichier = REPERTOIRE_EXPORT + self.code.data + ".yml" with open(fichier, "w", encoding="utf8") as fid: fid.write(yaml.dump(output)) - print(yaml.dump(output)) def supprimerRef(self): if self.referentiel.data == None: diff --git a/main.py b/main.py index 07c2cfe..157f643 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,6 @@ from app import app, db -from app.models import PN +from app.models import * @app.shell_context_processor def make_shell_context(): - return {"db": db, "PN": PN} - + return {"db": db} \ No newline at end of file