mirror of
https://github.com/haris-musa/excel-mcp-server.git
synced 2025-12-26 10:07:12 +08:00
Enhance README with logo and badges; update documentation; modify read_only to False (#32)
This commit is contained in:
@ -21,7 +21,7 @@ def read_excel_range(
|
||||
) -> list[dict[str, Any]]:
|
||||
"""Read data from Excel range with optional preview mode"""
|
||||
try:
|
||||
wb = load_workbook(filepath, read_only=True)
|
||||
wb = load_workbook(filepath, read_only=False)
|
||||
|
||||
if sheet_name not in wb.sheetnames:
|
||||
raise DataError(f"Sheet '{sheet_name}' not found")
|
||||
|
||||
@ -67,7 +67,7 @@ def get_workbook_info(filepath: str, include_ranges: bool = False) -> dict[str,
|
||||
if not path.exists():
|
||||
raise WorkbookError(f"File not found: {filepath}")
|
||||
|
||||
wb = load_workbook(filepath, read_only=True)
|
||||
wb = load_workbook(filepath, read_only=False)
|
||||
|
||||
info = {
|
||||
"filename": path.name,
|
||||
|
||||
Reference in New Issue
Block a user