Skip to content

Commit

Permalink
Update packages (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjambrecic authored Jul 11, 2024
1 parent b942d22 commit 36c331c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions google_sheets/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand All @@ -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",
]

Expand Down

0 comments on commit 36c331c

Please sign in to comment.