now the template adapt depending of the data and tries ajax button without success
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
pierre geeraert
2026-03-31 00:25:56 +01:00
parent e9dad6bfe5
commit 27dff192f2
4 changed files with 66 additions and 67 deletions
+7 -2
View File
@@ -6,8 +6,13 @@ import psycopg2
from cloudmanager.db_interaction import DB_generation,Check_server_supposed_XXX,Give_current_weekday,Give_current_hour
def hello(request):
return render(request, 'index.html', {})
list_schedule = ['schedule1','schedule2']
list_servers_up = [['wiki', 'wikijs', 2], ['book', 'bookstack-db', 1]]
return render(request, 'index.html', {'list_schedule':list_schedule,'list_servers_up':list_servers_up})
def print(request):
print("Im here")
return 0
def redirect(request):
db_host = os.environ.get('DB_HOST')
db_port = os.environ.get('DB_PORT')
@@ -20,6 +25,6 @@ def redirect(request):
## Server(s) supposed to be UP
list_servers_up = Check_server_supposed_XXX(generated_db, "up", Give_current_hour(),Give_current_weekday())
print(list_servers_up)
return render(request, 'cmm_blank_page.html', {'list_servers_up':list_servers_up})