update endpoints
This commit is contained in:
@@ -36,4 +36,20 @@ def count_confirmations(event_id):
|
||||
(event_id,)
|
||||
)
|
||||
|
||||
return result["amount"]
|
||||
return result["amount"]
|
||||
|
||||
def get_event_responses(event_id):
|
||||
|
||||
return fetch_all(
|
||||
"""
|
||||
SELECT
|
||||
users.id,
|
||||
users.username,
|
||||
event_signups.status
|
||||
FROM event_signups
|
||||
JOIN users
|
||||
ON users.id = event_signups.user_id
|
||||
WHERE event_signups.event_id = ?
|
||||
""",
|
||||
(event_id,)
|
||||
)
|
||||
Reference in New Issue
Block a user