Spaces:
Sleeping
Sleeping
| import asyncio | |
| from fastapi import FastAPI | |
| from server.app import dashboard | |
| app = FastAPI() | |
| async def run(): | |
| print("Testing dashboard logic...") | |
| try: | |
| response = await dashboard(refresh=True) | |
| print("Success! Response type:", type(response)) | |
| html_content = response.body.decode('utf-8') | |
| print(f"HTML size: {len(html_content)} bytes") | |
| if "Sheets-only" in html_content or "Google Sheets" in html_content: | |
| print("Found Sheets references in HTML") | |
| else: | |
| print("No Sheets references in HTML") | |
| except Exception as e: | |
| print(f"Error: {e}") | |
| if __name__ == "__main__": | |
| asyncio.run(run()) | |