Update environment info for http_function after execution using the data returned from isolator

This commit is contained in:
Peter Stockings
2023-12-18 15:28:32 +11:00
parent 5cc29309d5
commit efda151cd5
2 changed files with 6 additions and 0 deletions

4
db.py
View File

@@ -63,6 +63,10 @@ class DataBase():
def edit_http_function(self, name, script_content, environment_info):
self.execute(
'UPDATE http_functions SET script_content=%s, environment_info=%s WHERE NAME=%s', [script_content, environment_info, name], commit=True)
def update_http_function_environment_info(self, name, environment_info):
self.execute(
'UPDATE http_functions SET environment_info=%s WHERE NAME=%s', [environment_info, name], commit=True)
def delete_http_function(self, name):
self.execute(