From 4523bc615ff0062d2003e6018367fa8776b147b3 Mon Sep 17 00:00:00 2001 From: pantherale0 Date: Tue, 19 Dec 2023 16:41:00 +0000 Subject: [PATCH] 2023.12.1 --- pyroostermoney/child/money_pot.py | 2 +- pyroostermoney/const.py | 8 ++++---- setup.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyroostermoney/child/money_pot.py b/pyroostermoney/child/money_pot.py index 92bae83..f92f1c6 100644 --- a/pyroostermoney/child/money_pot.py +++ b/pyroostermoney/child/money_pot.py @@ -154,7 +154,7 @@ def convert_response(raw: dict, session: RoosterSession, child) -> list['Pot']: image=pot["customLedgerMetadata"].get("imageUrl", ""), enabled=True, # custom pots enabled by default value=pot["availableBalance"]["amount"], - target=pot["customLedgerMetadata"]["upperLimit"]["amount"], + target=pot["customLedgerMetadata"].get("upperLimit", {}).get("amount", 0), ledger_type=PotLedgerTypes.CUSTOM, last_updated=pot["updated"], session=session, diff --git a/pyroostermoney/const.py b/pyroostermoney/const.py index a39d74e..329db19 100644 --- a/pyroostermoney/const.py +++ b/pyroostermoney/const.py @@ -1,19 +1,19 @@ # pylint: disable=line-too-long """Static Rooster Money variables""" -VERSION="2023.12.0" +VERSION="2023.12.1" BASE_URL="https://api.rooster.money" OAUTH_TOKEN_URL="https://auth.rooster.money/oidc/token" LANGUAGE="en-GB" COUNTRY="gb" CURRENCY="GBP" -TIMEZONE_ID=60 -TIMEZONE="GMT+01:00" +TIMEZONE_ID=0 +TIMEZONE="GMT+00:00" DEFAULT_PRECISION=2 DEFAULT_BANK_NAME="Rooster Money" DEFAULT_BANK_TYPE="Business" DEFAULT_JOB_IMAGE_URL="https://images.roostermoney.com/static/default_job_icon.png" -MOBILE_APP_VERSION="10.4.1" +MOBILE_APP_VERSION="10.5.4" SAVINGS_POT_ID="SAVE_POT" SPEND_POT_ID="SPEND_POT" diff --git a/setup.py b/setup.py index bd0a3e9..1af7899 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup(name="pyroostermoney", - version="2023.12.0", + version="2023.12.1", description="A RoosterMoney integration for Python.", url="https://github.com/pantherale0/pyroostermoney", author="pantherale0",