Commit 6c9c89be authored by Julie Pichon's avatar Julie Pichon
Browse files

Update application.py

parent fafd2392
......@@ -84,11 +84,11 @@ def insert_oeuvreext():
def insert_expoperm():
nom = input("\nEntrez le nom de l'exposition")
nom = input("\nEntrez le nom de l'exposition\n")
cur = conn.cursor()
if nom:
try:
sql = f"INSERT INTO EXPO_PERM VALUES '{nom}');"
sql = f"INSERT INTO EXPO_PERM VALUES ('{nom}');"
cur.execute(sql)
conn.commit()
except psycopg2.DataError as e:
......@@ -203,7 +203,7 @@ def afficher_guide_expo():
expocol = "expotemp"
affecter = "affecter_temp"
sql = f"SELECT idg, nom, prenom FROM guide JOIN {affecter} as a ON a.guide=guide.idg WHERE a.{expocol} = '{expo}' GROUP BY nom, prenom;"
sql = f"SELECT idg, nom, prenom FROM guide JOIN {affecter} as a ON a.guide=guide.idg WHERE a.{expocol} = '{expo}' GROUP BY nom, prenom, idg;"
cur.execute(sql)
result = cur.fetchall()
......
Supports Markdown
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