Skip to content

Commit a547db0

Browse files
committed
fix: update finary-uapi to 0.2.0
1 parent a3ed9a0 commit a547db0

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ portfolio.html
1515
finary_data.json
1616
credentials.json
1717
localCookiesMozilla.txt
18+
jwt.json
1819

1920
# Byte-compiled / optimized / DLL files
2021
__pycache__/

finalynx/fetch/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
finary_uapi.constants.CREDENTIAL_FILE = os.path.join(os.path.dirname(__file__), "finary_credentials.json")
1818
finary_uapi.constants.COOKIE_FILENAME = os.path.join(os.path.dirname(__file__), "finary_cookies.txt")
19+
finary_uapi.constants.JWT_FILENAME = os.path.join(os.path.dirname(__file__), "jwt.json")
1920

2021
from ..console import console
2122
from .fetch import Fetch

finalynx/fetch/source_finary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _authenticate(self) -> Optional[Session]:
135135
result = ff.signin()
136136
self._log("Signed in to Finary.")
137137

138-
if result is None or result["message"] != "Created":
138+
if result is None or result["response"]["status"] != "complete":
139139
self._log(
140140
"[red][bold]Failed to signin to Finary![/] Deleting credentials and cookies, please try again.[/]"
141141
)

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ docopt = "0.6.2"
1515
unidecode = "^1.3.6"
1616
numpy = "^1.24.2"
1717
nicegui = "^1.2.13"
18-
finary-uapi = "^0.1.4"
18+
finary-uapi = "^0.2.0"
1919
html2image = "^2.0.3"
2020
n26 = "^3.3.1"
2121
iso18245 = "^1.2.0"

0 commit comments

Comments
 (0)