la_mojo now writes one report database per local hour into the day
folder (data/reports/YYYY/MM/DD/report_HH.db) instead of a single
report.db. Days recorded earlier keep their report.db; a day during the
upgrade has both.
- lib/php/db/report_files.php (loaded by ajax_asm.php, added to
files.list): lists a day's report files and maps ids. Row ids are per
file, so ids sent to the browser are global:
id = slot * 10000000 + rowid (slot 0..23 = hour, 24 = legacy report.db)
The JavaScript treats ids as opaque, so no JavaScript changes are needed.
Report files are never created by the web UI (existence is checked).
- getHistoryDay: sessions and "Events by Hours" from all files of the day
(legacy file split by hour as before, one node per hourly file).
- getHistoryEvents, getBubbleAnalysis, setPermanentBubbles: BID..EID range
resolved to its file.
- getVideoInfo, getPictureInfo, getFrames: event/video ids resolved to
their file; video ids returned as global ids.
- getStatus (live log): newest hourly file of the newest day; LSID from a
previous hour/day restarts at the beginning of the new file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16