lnbits-legend/lnbits/core
dni ⚡ 1d2b939e06
feat: cleanup-wallets cli command (#2176)
* feat: `cleanup-wallet` cli command
`lnbits-cli db cleanup-wallets` removes all wallets that never had an transaction.
this helps against spammers creating random wallets, eventually slowing down the db.
* add commands
* add to example env
* db_versions was used in app
* add delta as cli argument
* use days unit
* simplify cli argument name (cleanup_wallet_days -> days)!

---------

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-01-30 07:47:15 +01:00
..
templates feat: install wizard on first launch (#1977) 2024-01-25 13:33:40 +00:00
views feat: install wizard on first launch (#1977) 2024-01-25 13:33:40 +00:00
__init__.py [FEAT] Auth, Login, OAuth, create account with username and password #1653 (#2092) 2023-12-12 11:38:19 +01:00
crud.py feat: cleanup-wallets cli command (#2176) 2024-01-30 07:47:15 +01:00
db.py [REFACTOR] core/__init__ to not have circular import issues (#1876) 2023-09-12 11:25:05 +01:00
helpers.py Deactivate all extensions flag (#2206) 2024-01-22 12:18:12 +02:00
migrations.py revert: migration (#2198) 2024-01-09 11:34:53 +00:00
models.py feat: install wizard on first launch (#1977) 2024-01-25 13:33:40 +00:00
services.py feat: install wizard on first launch (#1977) 2024-01-25 13:33:40 +00:00
tasks.py [FEAT] Auth, Login, OAuth, create account with username and password #1653 (#2092) 2023-12-12 11:38:19 +01:00