Commit 63718679 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby

Ajout nombre d'invite

parent 37e6dbcb
......@@ -2943,8 +2943,9 @@ def get_activite(self, data):
con, cur = BaseFonctions.getcursor()
cur.execute("""SELECT activites.*,
(SELECT pseudo FROM comptes WHERE idbde = activites.validepar) AS valideparpseudo,
(SELECT pseudo FROM comptes WHERE idbde = activites.responsable) AS responsablepseudo
FROM activites WHERE id = %s;"""%(idact,))
(SELECT pseudo FROM comptes WHERE idbde = activites.responsable) AS responsablepseudo,
(SELECT COUNT(*) FROM invites WHERE activite = %s) AS nbinvites
FROM activites WHERE id = %s;"""%(idact, idact))
activite = cur.fetchone()
if activite is None:
self._send(None, 404, u"Cette activité n'existe pas.")
......
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