aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclyhtsuriva <clyhtsuriva@gmail.com>2020-04-19 22:16:25 +0200
committerclyhtsuriva <clyhtsuriva@gmail.com>2020-04-19 22:16:25 +0200
commit0811923c9e20194faefb181f6d974bcf80d51137 (patch)
tree109d6784fc6e98f6af9b0fadb0ac9c2d3f84350b
parentf04705827a8426fdd51f876d0ad8ed9352538c18 (diff)
ajout fonction lien
-rwxr-xr-xwww/html/fonctions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/html/fonctions.py b/www/html/fonctions.py
index c1566af..17c3624 100755
--- a/www/html/fonctions.py
+++ b/www/html/fonctions.py
@@ -21,3 +21,6 @@ def connexionBD():
connexion=psycopg2.connect ("host='localhost' dbname='atsdb' user='atsuser' password='123456'")
return connexion
+def lien(url,text):
+ content=("""<a href=" """ + url + """ ">""" + texte + """</a>""")
+ return content