journal API: + asset_code a error_msg — diagnostika selhaných zápisů bez SSH
All checks were successful
CI and deploy / migration-check (push) Successful in 19s
CI and deploy / deploy (push) Successful in 1m14s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dusan Vojacek
2026-06-12 23:48:32 +02:00
parent 042581681b
commit fb9d0f107a
2 changed files with 8 additions and 2 deletions

View File

@@ -414,6 +414,8 @@ class ModbusJournalCommandRow(BaseModel):
status: str
attempt_count: int
created_at: str
asset_code: str | None = None
error_msg: str | None = None
class ModbusJournalListResponse(BaseModel):

View File

@@ -14,7 +14,9 @@ as $fn$
'value_verified', q.value_verified,
'status', q.status,
'attempt_count', q.attempt_count,
'created_at', q.created_at
'created_at', q.created_at,
'asset_code', q.asset_code,
'error_msg', q.error_msg
)
order by q.created_at desc
),
@@ -30,7 +32,9 @@ as $fn$
mc.value_verified,
mc.status,
mc.attempt_count,
mc.created_at
mc.created_at,
mc.asset_code,
mc.error_msg
from ems.modbus_command mc
where mc.site_id = p_site_id
order by mc.created_at desc