Compare commits
No commits in common. "49a96143a6777cd36f8179cd59b9e81286358acc" and "f53b67000eac017030794619a1ccd0eaa7ad151e" have entirely different histories.
49a96143a6
...
f53b67000e
BIN
definitions.pyc
BIN
definitions.pyc
Binary file not shown.
21
pages.py
21
pages.py
@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from flask import render_template
|
||||
import definitions as lib
|
||||
from difflib import SequenceMatcher
|
||||
@ -37,14 +36,12 @@ def bateau(idbateau):
|
||||
|
||||
def expeditions(idexpedition):
|
||||
dico = {}
|
||||
dico["Nom"] = "joe"
|
||||
dico["Date"] = "quatrieme univers"
|
||||
|
||||
result = lib.ex_sql(dbname,"SELECT * FROM expedition WHERE expedition_id=?",(idexpedition,))
|
||||
if len(result) >= 1:
|
||||
result = result[0]
|
||||
dico["nom"] = result["nom"]
|
||||
dico["date"] = result["date"]
|
||||
dico["evenement"] = result["nom"]
|
||||
dico["Date"] = result["date"]
|
||||
print("dico")
|
||||
return render_template("expedition.html",**dico)
|
||||
else:
|
||||
return error()
|
||||
@ -55,22 +52,14 @@ def sauveteur(idsauveteur):
|
||||
dico["prenom"] = "Doe"
|
||||
dico["nb_sauvetages"] = 666
|
||||
dico["nb_sauves"] = 666
|
||||
dico["naissance"] = "vie"
|
||||
dico["deces"] = "mort"
|
||||
dico["gratifications"] = 1
|
||||
dico["description"] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at odio cursus, rutrum odio non, dignissim risus. Pellentesque non varius ante. Vivamus scelerisque pulvinar mauris, nec imperdiet ante mattis et."
|
||||
dico["expeditions"] = []
|
||||
result = lib.ex_sql(dbname,"SELECT * FROM sauveteur WHERE personal_id=?",(idsauveteur,))
|
||||
if len(result)==1:
|
||||
result = result[0]
|
||||
print(result["date_naissance"])
|
||||
print(result["date_mort"])
|
||||
dico["nom"] = result["nom"]
|
||||
dico["prenom"] = result["prenom"]
|
||||
dico["date_naissance"] = result["date_naissance"]
|
||||
dico["date_deces"] = result["date_mort"]
|
||||
print(dico["naissance"])
|
||||
print(dico["deces"])
|
||||
dico["nom"] = result["nom"]
|
||||
dico["prenom"] = result["prenom"]
|
||||
ids = lib.ex_sql(dbname,"SELECT * FROM mission WHERE personal_id=?",(idsauveteur,))
|
||||
dico["nb_sauvetages"] = 0
|
||||
dico["nb_sauves"] = 0
|
||||
|
@ -1,38 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<!--- Variables
|
||||
nom
|
||||
prenom
|
||||
date
|
||||
place
|
||||
histoire
|
||||
!-->
|
||||
<!-- saved from url=(0055)file:///C:/Users/rugja/Marin/templates/bateau_temp.html -->
|
||||
|
||||
|
||||
<html><head>
|
||||
<title>{{nom}}- Sauveteurs du dunkerquois</title>
|
||||
<title>{{siecle}}- Sauveuteurs du dunkerquois</title>
|
||||
{% include 'head.html' %}
|
||||
</head>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% include "smallheader.html" %}
|
||||
<h1>{{nom}}</h1>
|
||||
<div class="flexbox">
|
||||
<p class="right-align">
|
||||
|
||||
<table>
|
||||
<tbody><tr>
|
||||
<td class="table_key">Nom</td>
|
||||
<td>{{nom}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table_key">Date</td>
|
||||
<td>{{date}}</td>
|
||||
</tr>
|
||||
|
||||
</tbody></table>
|
||||
|
||||
{% include "smallheader.html" %}
|
||||
<h1>{{siecle}}</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user