Update function history view
This commit is contained in:
@@ -425,8 +425,8 @@ def logs(function_id):
|
||||
def history(function_id):
|
||||
# Fetch the timer function to verify ownership
|
||||
timer_function = db.execute("""
|
||||
SELECT id, name, code, version_number
|
||||
FROM timer_functions
|
||||
SELECT id, name, code AS script, version_number
|
||||
FROM timer_functions
|
||||
WHERE id = %s AND user_id = %s
|
||||
""", [function_id, current_user.id], one=True)
|
||||
|
||||
@@ -450,7 +450,8 @@ def history(function_id):
|
||||
'user_id': current_user.id,
|
||||
'function_id': function_id,
|
||||
'timer_function': timer_function,
|
||||
'versions': versions
|
||||
'versions': versions,
|
||||
'title': timer_function['name']
|
||||
}
|
||||
|
||||
if htmx:
|
||||
|
||||
Reference in New Issue
Block a user