Skip to content

Commit f2634ef

Browse files
authored
♻️ Rename app_slug parameter of _get_app to app_id (#192)
1 parent c4be635 commit f2634ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/fastapi_cloud_cli/commands/deploy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ def progress_callback(bytes_read: int) -> None:
263263
logger.debug("Upload notification sent successfully")
264264

265265

266-
def _get_app(client: APIClient, app_slug: str) -> AppResponse | None:
267-
response = client.get(f"/apps/{app_slug}")
266+
def _get_app(client: APIClient, app_id: str) -> AppResponse | None:
267+
response = client.get(f"/apps/{app_id}")
268268

269269
if response.status_code == 404:
270270
return None
@@ -793,7 +793,7 @@ def deploy(
793793
with toolkit.progress("Checking app...", transient=True) as progress:
794794
with client.handle_http_errors(progress):
795795
logger.debug("Checking app with ID: %s", target_app_id)
796-
app = _get_app(client=client, app_slug=target_app_id)
796+
app = _get_app(client=client, app_id=target_app_id)
797797

798798
if not app:
799799
logger.debug("App not found in API")

0 commit comments

Comments
 (0)