Skip to content

Commit 7f029d4

Browse files
aaronjnewmanclaude
andcommitted
Render source_pdf column as clickable HYPERLINK formula
Plain URL strings weren't clickable in the Sheet. Wrapping in =HYPERLINK() makes each cell an inline link labelled "View PDF". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3f494d1 commit 7f029d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/push_to_sheet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def build_row(rec: dict, preserved: dict[str, str]) -> list:
6060
row[col_index("presentation_type")] = rec.get("presentation_type", "")
6161
row[col_index("parser_format")] = rec.get("parser_format", "")
6262
row[col_index("qa_flags")] = ", ".join(rec.get("qa_flags", []) or [])
63-
row[col_index("source_pdf")] = source_pdf_url(rec)
63+
_url = source_pdf_url(rec)
64+
row[col_index("source_pdf")] = f'=HYPERLINK("{_url}","View PDF")' if _url else ""
6465
row[col_index("title")] = rec.get("title", "")
6566
row[col_index("authors_raw")] = rec.get("authors_raw", "")
6667
row[col_index("abstract")] = rec.get("abstract", "")

0 commit comments

Comments
 (0)