Fetches account balances from Fava/Beancount
Refactors account balance retrieval to fetch data from Fava/Beancount for improved accounting accuracy. Updates user balance retrieval to use Fava/Beancount data source. Updates Castle settings ledger slug name.
This commit is contained in:
parent
ff27f7ba01
commit
a88d7b4ea0
2 changed files with 57 additions and 21 deletions
|
|
@ -124,7 +124,7 @@ class CastleSettings(BaseModel):
|
|||
|
||||
# Fava/Beancount integration - ALL accounting is done via Fava
|
||||
fava_url: str = "http://localhost:3333" # Base URL of Fava server
|
||||
fava_ledger_slug: str = "castle-accounting" # Ledger identifier in Fava URL
|
||||
fava_ledger_slug: str = "castle-ledger" # Ledger identifier in Fava URL
|
||||
fava_timeout: float = 10.0 # Request timeout in seconds
|
||||
|
||||
updated_at: datetime = Field(default_factory=lambda: datetime.now())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue