Ajout des dimensions pour bateaux
This commit is contained in:
parent
ebc2c37877
commit
d4174e3ed0
2
pages.py
2
pages.py
@ -30,6 +30,7 @@ def bateau(idbateau):
|
|||||||
dico["date_naissance"] = result["date_naissance"]
|
dico["date_naissance"] = result["date_naissance"]
|
||||||
dico["date_mort"] = result["date_mort"]
|
dico["date_mort"] = result["date_mort"]
|
||||||
dico["Histoire"] = result["histoire"]
|
dico["Histoire"] = result["histoire"]
|
||||||
|
dico["dimensions"] = result["dimension"]
|
||||||
return render_template("bateau.html",**dico)
|
return render_template("bateau.html",**dico)
|
||||||
else:
|
else:
|
||||||
return error()
|
return error()
|
||||||
@ -68,6 +69,7 @@ def sauveteur(idsauveteur):
|
|||||||
dico["prenom"] = result["prenom"]
|
dico["prenom"] = result["prenom"]
|
||||||
dico["date_naissance"] = result["date_naissance"]
|
dico["date_naissance"] = result["date_naissance"]
|
||||||
dico["date_deces"] = result["date_mort"]
|
dico["date_deces"] = result["date_mort"]
|
||||||
|
dico["description"] = result["description"]
|
||||||
print(dico["naissance"])
|
print(dico["naissance"])
|
||||||
print(dico["deces"])
|
print(dico["deces"])
|
||||||
ids = lib.ex_sql(dbname,"SELECT * FROM mission WHERE personal_id=?",(idsauveteur,))
|
ids = lib.ex_sql(dbname,"SELECT * FROM mission WHERE personal_id=?",(idsauveteur,))
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="table_key">Mise en arrêt</td><td>{{date_mort}}</td>
|
<td class="table_key">Mise en arrêt</td><td>{{date_mort}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="table_key">Dimensions</td><td>{{dimensions}}</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user