diff --git a/google_sheets/app.py b/google_sheets/app.py index 2971840..f646dcb 100644 --- a/google_sheets/app.py +++ b/google_sheets/app.py @@ -48,9 +48,7 @@ async def is_authenticated_for_ads(user_id: int) -> bool: async with get_db_connection() as db: data = await db.gauth.find_unique(where={"user_id": user_id}) - if not data: - return False - return True + return bool(data) # Route 1: Redirect to Google OAuth diff --git a/pyproject.toml b/pyproject.toml index 4ff95d2..6487344 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dependencies = [ "pydantic>=2.3,<3", "fastapi>=0.110.2", "prisma==0.13.1", - "google-api-python-client==2.133.0", + "google-api-python-client==2.137.0", "asyncify==0.10.0", "pandas==2.2.2" ] @@ -66,11 +66,11 @@ lint = [ "types-ujson", "types-Pygments", "types-docutils", - "mypy==1.10.0", - "ruff==0.4.10", + "mypy==1.10.1", + "ruff==0.5.1", "pyupgrade-directories==0.3.0", "bandit==1.7.9", - "semgrep==1.77.0", + "semgrep==1.78.0", "pytest-mypy-plugins==3.1.2", ]