diff options
author | clyhtsuriva <clyhtsuriva@gmail.com> | 2020-04-19 22:16:25 +0200 |
---|---|---|
committer | clyhtsuriva <clyhtsuriva@gmail.com> | 2020-04-19 22:16:25 +0200 |
commit | 0811923c9e20194faefb181f6d974bcf80d51137 (patch) | |
tree | 109d6784fc6e98f6af9b0fadb0ac9c2d3f84350b /www/html | |
parent | f04705827a8426fdd51f876d0ad8ed9352538c18 (diff) |
ajout fonction lien
Diffstat (limited to 'www/html')
-rwxr-xr-x | www/html/fonctions.py | 3 |
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 |