Skip to content

Commit

Permalink
🐛fix: list deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
D10S0VSkY-OSS committed Dec 31, 2023
1 parent 4599753 commit 6cc4d04
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sld-dashboard/app/home/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,17 @@ def output(task_id):
def list_deploys(limit):
try:
token = decrypt(r.get(current_user.id))
# Check if token no expired
check_unauthorized_token(token)
# get stack info
endpoint = f"stacks/?limit={limit}"
if limit == 0:
endpoint = "stacks/"
endpoint = "stacks/"
stack_response = request_url(
verb="GET", uri=f"{endpoint}", headers={"Authorization": f"Bearer {token}"}
)
stack = stack_response.get("json")
# Get deploy data vars an d set var for render
search_term = request.args.get('search', '')
endpoint = f"deploy/?limit={limit}"
if limit == 0:
endpoint = "deploy/?name=" + search_term
endpoint = "deploy/"
response = request_url(
verb="GET", uri=f"{endpoint}", headers={"Authorization": f"Bearer {token}"}
)
Expand Down

0 comments on commit 6cc4d04

Please sign in to comment.