forked from eric.li/EditionPN
gitignore
This commit is contained in:
parent
e8eb8242f7
commit
328ce76bb1
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,4 +3,4 @@ migrations/__pycache__/
|
|||||||
migrations/versions/__pycache__/
|
migrations/versions/__pycache__/
|
||||||
export/
|
export/
|
||||||
app/__pycache__/
|
app/__pycache__/
|
||||||
|
app.db
|
@ -11,3 +11,7 @@
|
|||||||
|
|
||||||
flask run
|
flask run
|
||||||
|
|
||||||
|
### Pour initialiser la BDD
|
||||||
|
|
||||||
|
flask db migrate
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user