Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BDE
Note Kfet 2015 serveur
Commits
63718679
Commit
63718679
authored
May 10, 2018
by
Pierre-antoine Comby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout nombre d'invite
parent
37e6dbcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
serveur/ServeurFonctions.py
serveur/ServeurFonctions.py
+3
-2
No files found.
serveur/ServeurFonctions.py
View file @
63718679
...
...
@@ -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."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment