mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
chore: Rename GoogleSheetsBlock to GoogleSheetsReader
This commit renames the `GoogleSheetsBlock` class to `GoogleSheetsReader` in the `google-sheets-block.py` file. The purpose of this change is to provide a more accurate and descriptive name for the block, reflecting its role as a reader for Google Sheets data.
This commit is contained in:
@@ -3,7 +3,7 @@ from autogpt_server.data.model import SchemaField
|
||||
from google.oauth2.credentials import Credentials
|
||||
from googleapiclient.discovery import build
|
||||
|
||||
class GoogleSheetsBlock(Block):
|
||||
class GoogleSheetsReader(Block):
|
||||
class Input(BlockSchema):
|
||||
spreadsheet_id: str = SchemaField(
|
||||
description="The ID of the Google Sheet to read",
|
||||
@@ -25,8 +25,8 @@ class GoogleSheetsBlock(Block):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
id="google-sheets-block",
|
||||
input_schema=GoogleSheetsBlock.Input,
|
||||
output_schema=GoogleSheetsBlock.Output,
|
||||
input_schema=GoogleSheetsReader.Input,
|
||||
output_schema=GoogleSheetsReader.Output,
|
||||
)
|
||||
|
||||
def run(self, input_data: Input) -> BlockOutput:
|
||||
|
||||
Reference in New Issue
Block a user