INFO: Started server process [72396] INFO: Waiting for application startup. 2026-01-08 20:07:02,714 INFO sqlalchemy.engine.Engine BEGIN (implicit) 2026-01-08 20:07:02,714 INFO sqlalchemy.engine.Engine PRAGMA main.table_info("reports") 2026-01-08 20:07:02,714 INFO sqlalchemy.engine.Engine [raw sql] () 2026-01-08 20:07:02,715 INFO sqlalchemy.engine.Engine PRAGMA main.table_info("report_sections") 2026-01-08 20:07:02,715 INFO sqlalchemy.engine.Engine [raw sql] () 2026-01-08 20:07:02,715 INFO sqlalchemy.engine.Engine PRAGMA main.table_info("settings") 2026-01-08 20:07:02,715 INFO sqlalchemy.engine.Engine [raw sql] () 2026-01-08 20:07:02,715 INFO sqlalchemy.engine.Engine ALTER TABLE reports ADD COLUMN ai_model VARCHAR(100) DEFAULT 'gemini-2.0-flash-exp' 2026-01-08 20:07:02,715 INFO sqlalchemy.engine.Engine [generated in 0.00005s] () 2026-01-08 20:07:02,716 INFO sqlalchemy.engine.Engine ALTER TABLE report_sections ADD COLUMN prompt_tokens INTEGER DEFAULT 0 2026-01-08 20:07:02,716 INFO sqlalchemy.engine.Engine [generated in 0.00004s] () 2026-01-08 20:07:02,716 INFO sqlalchemy.engine.Engine ALTER TABLE report_sections ADD COLUMN completion_tokens INTEGER DEFAULT 0 2026-01-08 20:07:02,716 INFO sqlalchemy.engine.Engine [generated in 0.00003s] () 2026-01-08 20:07:02,716 INFO sqlalchemy.engine.Engine ALTER TABLE report_sections ADD COLUMN total_tokens INTEGER DEFAULT 0 2026-01-08 20:07:02,716 INFO sqlalchemy.engine.Engine [generated in 0.00003s] () 2026-01-08 20:07:02,717 INFO sqlalchemy.engine.Engine COMMIT INFO: Application startup complete. INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: 127.0.0.1:59101 - "HEAD /api/reports/24/html HTTP/1.1" 405 Method Not Allowed 2026-01-08 20:07:43,847 INFO sqlalchemy.engine.Engine BEGIN (implicit) 2026-01-08 20:07:43,850 INFO sqlalchemy.engine.Engine SELECT reports.id, reports.market, reports.symbol, reports.company_name, reports.status, reports.ai_model, reports.created_at FROM reports WHERE reports.id = ? 2026-01-08 20:07:43,851 INFO sqlalchemy.engine.Engine [generated in 0.00016s] (24,) 2026-01-08 20:07:43,856 INFO sqlalchemy.engine.Engine SELECT report_sections.report_id AS report_sections_report_id, report_sections.id AS report_sections_id, report_sections.section_name AS report_sections_section_name, report_sections.content AS report_sections_content, report_sections.total_tokens AS report_sections_total_tokens, report_sections.prompt_tokens AS report_sections_prompt_tokens, report_sections.completion_tokens AS report_sections_completion_tokens, report_sections.created_at AS report_sections_created_at FROM report_sections WHERE report_sections.report_id IN (?) 2026-01-08 20:07:43,856 INFO sqlalchemy.engine.Engine [generated in 0.00015s] (24,) INFO: 127.0.0.1:59139 - "GET /api/reports/24/html HTTP/1.1" 200 OK 2026-01-08 20:07:43,862 INFO sqlalchemy.engine.Engine ROLLBACK 2026-01-08 21:00:23,088 INFO sqlalchemy.engine.Engine BEGIN (implicit) 2026-01-08 21:00:23,123 INFO sqlalchemy.engine.Engine SELECT settings."key", settings.value FROM settings 2026-01-08 21:00:23,125 INFO sqlalchemy.engine.Engine [generated in 0.00458s] () INFO: 127.0.0.1:64084 - "GET /api/config HTTP/1.1" 200 OK 2026-01-08 21:00:23,193 INFO sqlalchemy.engine.Engine ROLLBACK 2026-01-08 21:00:23,198 INFO sqlalchemy.engine.Engine BEGIN (implicit) 2026-01-08 21:00:23,223 INFO sqlalchemy.engine.Engine SELECT reports.id, reports.market, reports.symbol, reports.company_name, reports.status, reports.ai_model, reports.created_at FROM reports ORDER BY reports.created_at DESC 2026-01-08 21:00:23,223 INFO sqlalchemy.engine.Engine [generated in 0.00017s] () 2026-01-08 21:00:23,224 INFO sqlalchemy.engine.Engine BEGIN (implicit) 2026-01-08 21:00:23,224 INFO sqlalchemy.engine.Engine SELECT settings."key", settings.value FROM settings 2026-01-08 21:00:23,224 INFO sqlalchemy.engine.Engine [cached since 0.1056s ago] () INFO: 127.0.0.1:64087 - "GET /api/config HTTP/1.1" 200 OK 2026-01-08 21:00:23,226 INFO sqlalchemy.engine.Engine ROLLBACK 2026-01-08 21:00:23,235 INFO sqlalchemy.engine.Engine SELECT report_sections.report_id AS report_sections_report_id, report_sections.id AS report_sections_id, report_sections.section_name AS report_sections_section_name, report_sections.content AS report_sections_content, report_sections.total_tokens AS report_sections_total_tokens, report_sections.prompt_tokens AS report_sections_prompt_tokens, report_sections.completion_tokens AS report_sections_completion_tokens, report_sections.created_at AS report_sections_created_at FROM report_sections WHERE report_sections.report_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 2026-01-08 21:00:23,236 INFO sqlalchemy.engine.Engine [cached since 3159s ago] (24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) INFO: 127.0.0.1:64085 - "GET /api/reports HTTP/1.1" 200 OK 2026-01-08 21:00:23,425 INFO sqlalchemy.engine.Engine ROLLBACK 2026-01-08 21:00:23,437 INFO sqlalchemy.engine.Engine BEGIN (implicit) 2026-01-08 21:00:23,437 INFO sqlalchemy.engine.Engine SELECT reports.id, reports.market, reports.symbol, reports.company_name, reports.status, reports.ai_model, reports.created_at FROM reports ORDER BY reports.created_at DESC 2026-01-08 21:00:23,437 INFO sqlalchemy.engine.Engine [cached since 0.2146s ago] () 2026-01-08 21:00:23,438 INFO sqlalchemy.engine.Engine SELECT report_sections.report_id AS report_sections_report_id, report_sections.id AS report_sections_id, report_sections.section_name AS report_sections_section_name, report_sections.content AS report_sections_content, report_sections.total_tokens AS report_sections_total_tokens, report_sections.prompt_tokens AS report_sections_prompt_tokens, report_sections.completion_tokens AS report_sections_completion_tokens, report_sections.created_at AS report_sections_created_at FROM report_sections WHERE report_sections.report_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 2026-01-08 21:00:23,438 INFO sqlalchemy.engine.Engine [cached since 3160s ago] (24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) INFO: 127.0.0.1:64090 - "GET /api/reports HTTP/1.1" 200 OK 2026-01-08 21:00:23,449 INFO sqlalchemy.engine.Engine ROLLBACK INFO: Shutting down INFO: Waiting for application shutdown. INFO: Application shutdown complete. INFO: Finished server process [67949]