Display http function invoked count in list
This commit is contained in:
4
db.py
4
db.py
@@ -64,9 +64,9 @@ class DataBase():
|
||||
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):
|
||||
def update_http_function_environment_info_and_invoked_count(self, name, environment_info):
|
||||
self.execute(
|
||||
'UPDATE http_functions SET environment_info=%s WHERE NAME=%s', [environment_info, name], commit=True)
|
||||
'UPDATE http_functions SET environment_info=%s, invoked_count = invoked_count + 1 WHERE NAME=%s', [environment_info, name], commit=True)
|
||||
|
||||
def delete_http_function(self, name):
|
||||
self.execute(
|
||||
|
||||
Reference in New Issue
Block a user