Skip to content

Commit

Permalink
fix: update finary-uapi to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MadeInPierre committed Jan 21, 2024
1 parent a3ed9a0 commit a547db0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ portfolio.html
finary_data.json
credentials.json
localCookiesMozilla.txt
jwt.json

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
1 change: 1 addition & 0 deletions finalynx/fetch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

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

from ..console import console
from .fetch import Fetch
Expand Down
2 changes: 1 addition & 1 deletion finalynx/fetch/source_finary.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _authenticate(self) -> Optional[Session]:
result = ff.signin()
self._log("Signed in to Finary.")

if result is None or result["message"] != "Created":
if result is None or result["response"]["status"] != "complete":
self._log(
"[red][bold]Failed to signin to Finary![/] Deleting credentials and cookies, please try again.[/]"
)
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ docopt = "0.6.2"
unidecode = "^1.3.6"
numpy = "^1.24.2"
nicegui = "^1.2.13"
finary-uapi = "^0.1.4"
finary-uapi = "^0.2.0"
html2image = "^2.0.3"
n26 = "^3.3.1"
iso18245 = "^1.2.0"
Expand Down

0 comments on commit a547db0

Please sign in to comment.