17 lines
775 B
Python
17 lines
775 B
Python
import sys, json
|
|
sys.path.insert(0, "/app")
|
|
import sync_server as m
|
|
|
|
# read header rows (1-3) full width A:N
|
|
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
|
|
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A1:N3"})
|
|
print("=== HEADERS (rows 1-3) ===")
|
|
for i, row in enumerate((r or {}).get("values") or []):
|
|
print(f"row {i+1}: {json.dumps([str(c)[:20] for c in row], ensure_ascii=False)}")
|
|
|
|
# read the rows I just updated (754-759) A:N
|
|
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
|
|
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A754:N759"})
|
|
print("\n=== UPDATED ROWS (754-759) A:N ===")
|
|
for i, row in enumerate((r or {}).get("values") or []):
|
|
print(f"row {754+i}: {json.dumps([str(c)[:25] for c in row], ensure_ascii=False)}")
|