Skip to content

Commit 2bce5a8

Browse files
committed
fix: if > elif
1 parent 87f7885 commit 2bce5a8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "ws-api"
7-
version = "0.32.0"
7+
version = "0.32.1"
88
description = "Access your Wealthsimple account using their (GraphQL) API."
99
readme = "README.md"
1010
license = {file = "LICENSE"}

ws_api/formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def format_activity_description(act: dict, api_context) -> None:
240240
security = api_context.security_id_to_symbol(act["securityId"])
241241
act["description"] = f"Crypto {action}: {float(act['assetQuantity'])} x {security}"
242242

243-
if act["type"] == "CRYPTO_TRANSFER":
243+
elif act["type"] == "CRYPTO_TRANSFER":
244244
action = "sent" if act["subType"] == "TRANSFER_OUT" else "received"
245245
security = api_context.security_id_to_symbol(act["securityId"])
246246
act["description"] = (

0 commit comments

Comments
 (0)