Add ability to set commit messages when editing functions

This commit is contained in:
Peter Stockings
2025-12-02 20:36:55 +11:00
parent 2253c8f7a7
commit 46339cc4cf
6 changed files with 63 additions and 3 deletions

2
db.py
View File

@@ -184,7 +184,7 @@ ORDER BY invocation_time DESC""", [http_function_id])
'UPDATE users SET theme_preference=%s WHERE id=%s', [theme, user_id], commit=True)
def get_http_function_history(self, function_id):
http_function_history = self.execute(
'SELECT version_id, http_function_id, script_content, version_number, updated_at FROM http_functions_versions WHERE http_function_id=%s ORDER BY version_number DESC', [function_id])
'SELECT version_id, http_function_id, script_content, version_number, updated_at, commit_message FROM http_functions_versions WHERE http_function_id=%s ORDER BY version_number DESC', [function_id])
return http_function_history
def create_api_key(self, user_id, name, key, scopes, rate_limit_count=None, rate_limit_period=None):