Skip to content

Commit

Permalink
chore: do not fetch again
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjoeoui committed Mar 19, 2024
1 parent f579c87 commit 6caa13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions captain/routes/cloud.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import json

from fastapi import APIRouter, Response
from flojoy_cloud.client import FlojoyCloud
from flojoy.env_var import get_env_var
from flojoy_cloud.client import FlojoyCloud

router = APIRouter(tags=["cloud"])

Expand All @@ -16,7 +16,7 @@ async def get_cloud_projects():
if workspace_secret is None:
return Response(status_code=401, content=json.dumps([]))

cloud = FlojoyCloud(workspace_secret=get_env_var("FLOJOY_CLOUD_WORKSPACE_SECRET"))
cloud = FlojoyCloud(workspace_secret=workspace_secret)

projects = cloud.get_all_projects(
""
Expand Down

0 comments on commit 6caa13d

Please sign in to comment.