From 22a73c0a300422d9aed19b4c0138eca27d9a117c Mon Sep 17 00:00:00 2001 From: batikano1 Date: Fri, 3 Dec 2021 06:34:04 +0100 Subject: [PATCH] easter egg --- pages.py | 15 ++++++++++++++- templates/bateau.html | 9 +++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/pages.py b/pages.py index 2e822dd..605e6da 100644 --- a/pages.py +++ b/pages.py @@ -56,7 +56,7 @@ def sauveteur(idsauveteur): dico["nb_sauvetages"] = 666 dico["nb_sauves"] = 666 dico["naissance"] = "vie" - dico["deces"] = "mort" + dico["deces"] = "mort" #<3 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"] = [] @@ -109,3 +109,16 @@ def search(texte): results.append(r) return render_template("searchresults.html",liste=results) + +def bateau(idsecret): + dico = {} + dico["Message"] = "messi" + + result = lib.ex_sql(dbname,"SELECT * from secret",(idsecret,)) + if len(result)>=1: + result = result[0] + dico["Message"] = result["Message"] + + return render_template("chuck.html",**dico) + else: + return error() \ No newline at end of file diff --git a/templates/bateau.html b/templates/bateau.html index a02f13b..ad4bd9f 100644 --- a/templates/bateau.html +++ b/templates/bateau.html @@ -10,6 +10,15 @@

{{Histoire}}

+ + + + + + + + +
Nom{{NomBateau}}
Mise à flot{{date_naissance}}
Mise en arrêt{{date_mort}}
Nom{{nom}}