Only show invocation logs for http function selected

This commit is contained in:
Peter Stockings
2023-12-18 21:23:49 +11:00
parent 71ab2c3b6b
commit 7e2181c7a6

2
db.py
View File

@@ -81,6 +81,6 @@ class DataBase():
http_function_invocations = self.execute(
"""SELECT id, http_function_id, STATUS, invocation_time, request_data, response_data, LOGS
FROM http_function_invocations
WHERE http_function_id=9
WHERE http_function_id=%s
ORDER BY invocation_time DESC""", [http_function_id])
return http_function_invocations