Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
guptadev21 committed Oct 18, 2024
1 parent fae3edc commit 692cafc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions riocli/device/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from click_help_colors import HelpColorsCommand

from riocli.constants import Colors, Symbols
from riocli.device.util import name_to_guid, shared_url_debug_logs, upload_debug_logs
from riocli.device.util import name_to_guid, generate_shared_url, upload_debug_logs
from riocli.utils.spinner import with_spinner


Expand Down Expand Up @@ -89,7 +89,7 @@ def report_device(

if share:
spinner.text = click.style("Creating shared URL...", fg=Colors.YELLOW)
public_url = shared_url_debug_logs(
public_url = generate_shared_url(
device_guid, response["response"]["data"]["request_uuid"], expiry
)
click.secho(public_url.url, fg=Colors.GREEN)
Expand Down
2 changes: 1 addition & 1 deletion riocli/device/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def upload_debug_logs(device_guid: str) -> dict:
return response.json()


def shared_url_debug_logs(device_guid: str, request_id: str, expiry: int, spinner=None):
def generate_shared_url(device_guid: str, request_id: str, expiry: int, spinner=None):
try:
client = new_client()
device = client.get_device(device_id=device_guid)
Expand Down

0 comments on commit 692cafc

Please sign in to comment.