AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix: disable google sheets in prod based on oauth review (#9906)
Nicholas Tindleafb66f75ec81
diff --git a/autogpt_platform/backend/backend/blocks/google/sheets.py b/autogpt_platform/backend/backend/blocks/google/sheets.pyindex 31ba36eebf..141e359184 100644--- a/autogpt_platform/backend/backend/blocks/google/sheets.py+++ b/autogpt_platform/backend/backend/blocks/google/sheets.py@@ -3,7 +3,7 @@ from googleapiclient.discovery import buildfrom backend.data.block import Block, BlockCategory, BlockOutput, BlockSchemafrom backend.data.model import SchemaField-from backend.util.settings import Settings+from backend.util.settings import AppEnvironment, Settingsfrom ._auth import (GOOGLE_OAUTH_IS_CONFIGURED,@@ -36,13 +36,15 @@ class GoogleSheetsReadBlock(Block):)def __init__(self):+ settings = Settings()super().__init__(id="5724e902-3635-47e9-a108-aaa0263a4988",description="This block reads data from a Google Sheets spreadsheet.",categories={BlockCategory.DATA},input_schema=GoogleSheetsReadBlock.Input,output_schema=GoogleSheetsReadBlock.Output,- disabled=not GOOGLE_OAUTH_IS_CONFIGURED,+ disabled=not GOOGLE_OAUTH_IS_CONFIGURED+ or settings.config.app_env == AppEnvironment.PRODUCTION,test_input={"spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms","range": "Sheet1!A1:B2",