Skip to content

Commit

Permalink
Update monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRunfola committed Feb 14, 2025
1 parent 7164975 commit b064668
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geoBoundaryBuilder/monitor/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def get_stats():

# Get status information
cur.execute("""
SELECT status_type, status, last_updated, heartbeat
SELECT "STATUS_TYPE", "STATUS", "TIME"
FROM status
ORDER BY status_type
ORDER BY "STATUS_TYPE"
""")
rows = cur.fetchall()
logging.info(f"Status rows: {rows}")
Expand All @@ -73,7 +73,7 @@ def get_stats():
'type': row[0],
'status': row[1],
'last_updated': row[2].isoformat() if row[2] else None,
'heartbeat': row[3].isoformat() if row[3] else None
'heartbeat': row[2].isoformat() if row[2] else None # Using TIME for both since there's no separate heartbeat
})
logging.info(f"Processed status info: {status_info}")

Expand Down

0 comments on commit b064668

Please sign in to comment.