Skip to content

Commit ee9367b

Browse files
committed
Fix db representation
1 parent feadfba commit ee9367b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/pdf2sqlite/mcp_server

src/pdf2sqlite/mcp_server/db.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,14 @@ async def get_tables_for_page(self, page_id: int) -> list[dict[str, Any]]:
192192
pdf_tables.id,
193193
pdf_tables.pdf_id,
194194
pdf_tables.page_number,
195+
pdf_tables.text,
195196
pdf_tables.description,
196197
pdf_tables.caption_above,
197198
pdf_tables.caption_below,
198-
LENGTH(pdf_tables.image) AS data_bytes
199+
pdf_tables.xmin,
200+
pdf_tables.ymin,
201+
LENGTH(pdf_tables.image) AS data_bytes,
202+
LENGTH(pdf_tables.text) AS text_length
199203
FROM pdf_tables
200204
JOIN page_to_table ON page_to_table.table_id = pdf_tables.id
201205
WHERE page_to_table.page_id = ?

0 commit comments

Comments
 (0)