Commit 808d3ee4 authored by Clement Lucas's avatar Clement Lucas
Browse files

Update Client.py

parent b61107ec
......@@ -21,7 +21,18 @@ class Client(SQL):
''' % numero
return self._lecture_sql(sql)
def rechercher_correspondance(self, ville_depart, ville_arrivee):
def trajet_moins_cher(self, ville_depart, ville_arrivee):
sql='''
SELECT id_billet
FROM billet
WHERE ville_depart = '%s'
AND ville_arrivee = '%s'
ORDER BY prix DESC;
''' % (ville_depart,ville_arrivee)
return self._lecture_sql(sql)
def rechercher_correspondance(self, ville_depart, ville_arrivee):
# Ligne et arrêt associés à la gare de départ
sql_1='''
SELECT ligne, id_arret
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment