Commit Graph

45 Commits

Author SHA1 Message Date
Vlad Stan
6cab77ece4
Merge branch 'main' into FinalAdminUI 2022-12-12 10:49:31 +02:00
callebtc
3bb11dc487 separate migrations 2022-12-06 16:21:19 +01:00
callebtc
4e69924c9c fix datetime conversion 2022-12-02 17:38:36 +01:00
dni ⚡
803c9349d4 merge main 2022-12-01 12:37:08 +01:00
callebtc
872d5a6702 use isinstance, not type 2022-12-01 12:21:25 +01:00
callebtc
92435e8492 rewrite values in db 2022-12-01 12:21:25 +01:00
callebtc
c901a5c69d strip html 2022-12-01 12:21:25 +01:00
ben
cbd939f35b Revert "Merge remote-tracking branch 'origin/fix/strip_html_db' into feature/satspay-server-custom-css"
This reverts commit f98278faba.
2022-12-01 12:21:25 +01:00
callebtc
824baa4f2a use isinstance, not type 2022-12-01 12:21:25 +01:00
callebtc
2ec150fd13 rewrite values in db 2022-12-01 12:21:25 +01:00
callebtc
6d16ac0f0a strip html 2022-12-01 12:21:25 +01:00
Vlad Stan
d0e42a3c2d fix: do not apply list() to str value 2022-11-30 22:08:23 +02:00
callebtc
aa0fbde541 use isinstance, not type 2022-11-25 15:20:39 +01:00
callebtc
b970f0cb0c rewrite values in db 2022-11-25 15:11:58 +01:00
callebtc
60cc0ca11a strip html 2022-11-25 14:53:03 +01:00
dni ⚡
f9de542361 use new settings and remove unused amdin extension stuff 2022-10-25 09:23:30 +02:00
Vlad Stan
7711387d64
fix: use bigint for amounts in postgres (#1030) 2022-10-07 14:23:57 +02:00
calle
f4e7d62ca3
make format everything (#743) 2022-07-16 14:23:03 +02:00
calle
089313f613
Logging with loguru (#708)
* logging

* requirements

* add loguru dependency

* restore it

* add loguru

* set log level in .env file

* remove service fee print

* set log level

* more logging

* more logging

* more logging

* pyament.checking_id

* fix
2022-07-07 14:30:16 +02:00
Axel Hodler
946ebc350e fail early if LNBITS_DATA_FOLDER missing 2022-03-27 17:03:24 +02:00
Tiago vasconcelos
c34041c49c add hack for milliseconds on postgres 2021-11-15 12:11:42 +00:00
Stefan Stammberger
d9849d43d2
refactor: replace Trio with asyncio/uvloop 2021-08-30 19:55:02 +02:00
fiatjaf
1c0a4e252a explicit postgres type numbers in anti-conversion table. 2021-08-11 22:53:34 -03:00
fiatjaf
e0496fb244 fix postgres type translation bug and add some logs. 2021-08-01 10:30:27 -03:00
fiatjaf
ffadce02b0 support cockroachdb. 2021-07-02 18:32:58 -03:00
fiatjaf
46eab3b35e psycopg2 only imported when postgres. 2021-07-02 17:34:33 -03:00
fiatjaf
2f309c9863 postgres support. 2021-07-02 17:34:31 -03:00
fiatjaf
688149fade add trio typing. 2021-06-20 21:17:32 -03:00
fiatjaf
85011d23c3 fix sqlite database locked issues by using an async lock on the database and requiring explicit transaction control (or each command will be its own transaction). 2021-03-26 19:10:30 -03:00
fiatjaf
42bd5ea989 remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
fiatjaf
d84915cb00 oops: formatting. 2020-11-21 23:23:11 -03:00
fiatjaf
d3fc52cd49 migrate to sqlalchemy-aio.
a big refactor that:

- fixes some issues that might have happened (or not) with asynchronous
    reactions to payments;
- paves the way to https://github.com/lnbits/lnbits/issues/121;
- uses more async/await notation which just looks nice; and
- makes it simple(r?) for one extension to modify stuff from other extensions.
2020-11-21 23:02:14 -03:00
fiatjaf
95e8573ff8 SSE endpoint for paid invoices.
also move very essential stuff from core/tasks.py to tasks.py so things
are more organized.
2020-10-06 00:40:18 -03:00
fiatjaf
9994e61615 migrate to trio so c-lightning sockets stop hanging. 2020-10-04 12:06:20 -03:00
fiatjaf
4855e2cd3d make every request a database transaction. 2020-09-11 14:17:09 -03:00
fiatjaf
b56877d470 make db.py context manager operate in a transaction. 2020-09-02 11:10:48 -03:00
Eneko Illarramendi
490e166f75 refactor: improve database migrations 2020-04-16 20:58:16 +02:00
Eneko Illarramendi
f98a5040ac refactor: decorators, models and more broken bits 2020-03-04 23:11:15 +01:00
Eneko Illarramendi
e5915bc493 refactor: add a simple config file to extensions
It makes possible to automagically keep the extensions admin page updated.
2020-02-18 20:27:04 +01:00
Eneko Illarramendi
0d33bc2933 refactor: remove databases from code an use schemas instead
All databases are now saved together in the same LNBITS_DATA_FOLDER.
Extensions have to define a schema.yml file for creating the necessary database.
2020-02-10 19:40:01 +01:00
Eneko Illarramendi
9e90aabead refactor: use Flask Blueprints to organize extensions
- extensions are now blueprints: keep views, templastes and statics in the same folder
- increase app security using `flask-talisman`
- whenever possible use {{ url_for }} for links between pages
- remove references to non-existing JavaScript code
- add missing favicon.ico
2020-01-31 21:07:05 +01:00
Arc
b7af605c5b
Update db.py 2020-01-27 23:41:16 +00:00
Arc
3c498b3eae
Update db.py 2020-01-27 23:31:40 +00:00
Arc
700e982669
Classes for extensions
Added for both extensions and lnfaucet db
2020-01-27 23:30:31 +00:00
Eneko Illarramendi
9a21cee902 refactor: change folder case 2019-12-17 17:04:51 +01:00