akt-cli 0.8.0__tar.gz → 0.8.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akt-cli
3
- Version: 0.8.0
3
+ Version: 0.8.2
4
4
  Summary: akt — a CLI toolbox to fully drive an Akaunting accounting instance
5
5
  Keywords: akaunting,accounting,cli,invoices,bills,api
6
6
  Author: AsyncAlchemist
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "akt-cli"
3
- version = "0.8.0"
3
+ version = "0.8.2"
4
4
  description = "akt — a CLI toolbox to fully drive an Akaunting accounting instance"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -242,7 +242,9 @@ def _need_akt_api(client: Client, cmd: str) -> None:
242
242
 
243
243
 
244
244
  def _fetch_balances(client: Client, ns: Any):
245
- accounts = client.list("chart-of-accounts", all_pages=True)
245
+ # One big page instead of paginating (a chart of accounts is small); saves
246
+ # round-trips, which matters when a script runs many balance/report calls.
247
+ accounts = client.list("chart-of-accounts", all_pages=True, params={"limit": 1000})
246
248
  accts_by_id = {a["id"]: {"code": a.get("code"), "name": a.get("name"),
247
249
  "type_id": a.get("type_id")} for a in accounts}
248
250
  params: dict[str, Any] = {}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes