gitignore

This commit is contained in:
Éric Li 2021-06-09 20:17:37 +02:00
parent e8eb8242f7
commit 328ce76bb1
5 changed files with 7 additions and 5 deletions

2
.gitignore vendored
View File

@ -3,4 +3,4 @@ migrations/__pycache__/
migrations/versions/__pycache__/ migrations/versions/__pycache__/
export/ export/
app/__pycache__/ app/__pycache__/
app.db

View File

@ -11,3 +11,7 @@
flask run flask run
### Pour initialiser la BDD
flask db migrate

BIN
app.db

Binary file not shown.

View File

@ -135,7 +135,6 @@ class Form(ModelForm):
fichier = REPERTOIRE_EXPORT + self.code.data + ".yml" fichier = REPERTOIRE_EXPORT + self.code.data + ".yml"
with open(fichier, "w", encoding="utf8") as fid: with open(fichier, "w", encoding="utf8") as fid:
fid.write(yaml.dump(output)) fid.write(yaml.dump(output))
print(yaml.dump(output))
def supprimerRef(self): def supprimerRef(self):
if self.referentiel.data == None: if self.referentiel.data == None:

View File

@ -1,7 +1,6 @@
from app import app, db from app import app, db
from app.models import PN from app.models import *
@app.shell_context_processor @app.shell_context_processor
def make_shell_context(): def make_shell_context():
return {"db": db, "PN": PN} return {"db": db}