Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 8, 2024
1 parent 002c622 commit 490e4f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion hypha/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,9 @@ async def report_login(
user_info = user_info.model_dump(mode="json")
await redis.setex(key, MAXIMUM_LOGIN_TIME, json.dumps(user_info))

logger.info(f"To preview the login page, visit: {login_service_url.replace('/services/', '/apps/')}")
logger.info(
f"To preview the login page, visit: {login_service_url.replace('/services/', '/apps/')}"
)
return {
"name": "Hypha Login",
"id": "hypha-login",
Expand Down
6 changes: 2 additions & 4 deletions hypha/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,10 @@ async def get_app_info(
workspace: str,
service_id: str,
mode: str = None,
user_info = Depends(store.login_optional),
user_info=Depends(store.login_optional),
):
"""Route for checking details of an app."""
service_type = await self.store.get_service_type_id(
workspace, service_id
)
service_type = await self.store.get_service_type_id(workspace, service_id)
if service_type:
# redirect to the app page
return RedirectResponse(
Expand Down

0 comments on commit 490e4f3

Please sign in to comment.