Skip to content
Snippets Groups Projects
Commit c52214f2 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add graph button to monitoring screen

parent 1d9f734e
Branches
No related tags found
1 merge request!347status plots functionality
Pipeline #74704 passed
......@@ -1810,7 +1810,7 @@ def CreateStatusGraph(request):
# Calculate the date x days ago
start_date = datetime.now() - timedelta(days=days_to_check)
database = settings.DATABASES['default']
dbname = database['NAME']
# Connect to your PostgreSQL database
conn = psycopg2.connect(
dbname=database['NAME'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment