Rename Castle Accounting extension to Libra
Full identifier rename: module path lnbits.extensions.castle →
lnbits.extensions.libra, DB ext_castle → ext_libra, URL prefix
/castle/ → /libra/, manifest id castle → libra, fava ledger slug
default castle-ledger → libra-ledger, Beancount source metadata
castle-api → libra-api and link prefixes castle-{entry,tx}- →
libra-{entry,tx}-, column castle_wallet_id → libra_wallet_id, all
Python/JS/HTML identifiers (castle_ext, CastleSettings,
castle_reference, castleWalletConfigured, etc.).
Display name "Castle Accounting" → "Libra" (the scales/balance
metaphor — fits double-entry bookkeeping).
No backward compat: production hosts will be force-updated. Old
castle-prefixed Beancount metadata in existing Fava ledgers is
historical; new entries use libra-* prefixes going forward.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9c577c740c
commit
c174cda48d
44 changed files with 953 additions and 953 deletions
|
|
@ -361,7 +361,7 @@ async def get_permission_analytics() -> dict:
|
|||
"""
|
||||
SELECT ap.*, a.name as account_name
|
||||
FROM account_permissions ap
|
||||
JOIN castle_accounts a ON ap.account_id = a.id
|
||||
JOIN libra_accounts a ON ap.account_id = a.id
|
||||
WHERE ap.expires_at IS NOT NULL
|
||||
AND ap.expires_at > :now
|
||||
AND ap.expires_at <= :seven_days
|
||||
|
|
@ -385,7 +385,7 @@ async def get_permission_analytics() -> dict:
|
|||
top_accounts_result = await db.fetchall(
|
||||
"""
|
||||
SELECT a.name, COUNT(ap.id) as permission_count
|
||||
FROM castle_accounts a
|
||||
FROM libra_accounts a
|
||||
LEFT JOIN account_permissions ap ON a.id = ap.account_id
|
||||
GROUP BY a.id, a.name
|
||||
HAVING COUNT(ap.id) > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue