fix: correct column names in scheduler status query (total, errores)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
467a24baa4
commit
12f5f1388d
@@ -81,7 +81,7 @@ async def scheduler_status():
|
||||
next_run = job.next_run_time.isoformat() if job and job.next_run_time else None
|
||||
conn = get_connection()
|
||||
row = conn.execute(
|
||||
"SELECT created_at, total_procesados, total_errores, origen "
|
||||
"SELECT created_at, total, errores, origen "
|
||||
"FROM sync_wa_log WHERE origen='scheduler' ORDER BY id DESC LIMIT 1"
|
||||
).fetchone()
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user