mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-29 02:46:38 +00:00
Update health_persistence.py
This commit is contained in:
@@ -887,19 +887,19 @@ class HealthPersistence:
|
|||||||
conn.row_factory = sqlite3.Row
|
conn.row_factory = sqlite3.Row
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
|
|
||||||
cursor.execute('''
|
cursor.execute('''
|
||||||
SELECT * FROM errors
|
SELECT * FROM errors
|
||||||
WHERE acknowledged = 1
|
WHERE acknowledged = 1
|
||||||
ORDER BY acknowledged_at DESC
|
ORDER BY acknowledged_at DESC
|
||||||
''')
|
''')
|
||||||
|
|
||||||
rows = cursor.fetchall()
|
rows = cursor.fetchall()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
dismissed = []
|
dismissed = []
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
|
|
||||||
for row in rows:
|
for row in rows:
|
||||||
error_dict = dict(row)
|
error_dict = dict(row)
|
||||||
if error_dict.get('details'):
|
if error_dict.get('details'):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user