Skip to content

Commit

Permalink
More accurate name
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Apr 8, 2020
1 parent e3f64b1 commit 2182358
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions wgcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ def get_verify() -> bool:
return not debug


def get_config_url(account_token: str) -> str:
return f"{reg_url}/{account_token}"
def get_config_url(account_id: str) -> str:
return f"{reg_url}/{account_id}"


def get_account_url(account_token: str) -> str:
return f"{get_config_url(account_token)}/account"
def get_account_url(account_id: str) -> str:
return f"{get_config_url(account_id)}/account"


def get_devices_url(account_token: str) -> str:
return f"{get_account_url(account_token)}/devices"
def get_devices_url(account_id: str) -> str:
return f"{get_account_url(account_id)}/devices"


def get_account_reg_url(account_token: str, device_token: str) -> str:
return f"{get_account_url(account_token)}/reg/{device_token}"
def get_account_reg_url(account_id: str, device_token: str) -> str:
return f"{get_account_url(account_id)}/reg/{device_token}"


@dataclasses.dataclass
Expand Down

0 comments on commit 2182358

Please sign in to comment.