Commit Graph

24 Commits

Author SHA1 Message Date
Pavol Rusnak
62b0e3fe89
set User-Agent when accessing external resources (#2100)
* set User-Agent when accessing external resources

* refactor User-Agent into settings.user_agent
2023-11-30 12:54:07 +00:00
dni ⚡
48f25488df
[CHORE] cleanup cache and exception on make test (#1899)
* [CHORE] cleanup cache and exception on `make test`

moved the invalidate_forever task to proper location and use `create_permanent_task`.
and there was a Task never awaited Exception when running tests

* imrpove expiration test

* move cache into utils

* fix issue with pytest_asyncio

s

---------

Co-authored-by: jacksn <jkranawetter05@gmail.com>
2023-08-28 10:56:59 +01:00
jackstar12
e50a7fb2d1
refactor exchange rates (#1847)
* simplify and cache exchange rate

note that exir was removed as a provider

* add binance as provider

* log exception

* add test

* add blockchain.com provider
2023-08-24 11:59:57 +01:00
dni ⚡
4e6f229db2
[CHORE] string formatting default length 88 (#1887)
* [CHORE] string formatting default length 88

uses blacks default off 88 and enabled autostringformatting

* formatting

* nitpicks jackstar

fix
2023-08-24 10:26:09 +01:00
dni
4dfa0873e5 fix isort check 2022-07-25 12:03:06 +02:00
dni
808bd36e23 some more mypy fixes 2022-07-25 12:02:59 +02:00
calle
f4580955b9
loguru warnings (#751) 2022-07-17 22:25:37 +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
rimthekid
a94444ae2c add IRT 2022-03-30 05:22:48 -07:00
benarc
228717195b back 2022-01-30 19:43:30 +00:00
Tiago Vasconcelos
918e9be7ed
Upgrade conversion endpoint (#491) 2022-01-14 09:19:30 -03:00
Tiago vasconcelos
17b13bb652 fix issue #452 2021-12-30 16:39:24 +00:00
fiatjaf
09990450b7 lnurlpos v2 lnurl endpoint.
compatible with the phone app and updated device.
2021-12-14 17:00:20 -03:00
benarc
267dea4f75 black 2021-11-12 04:14:55 +00:00
Stefan Stammberger
fa1f6e5038
fix: crash when a currency pair is unavailable 2021-10-25 18:57:58 +02:00
Stefan Stammberger
d1b628375a
fix: revert some changes from last commit
Reintroduced the controller which canceles remaining requests once
two results are received.
2021-10-24 10:14:16 +02:00
Stefan Stammberger
7550c968e7
fix: fetch btc price function 2021-10-23 16:41:53 +02:00
Tiago vasconcelos
e532ce1971 dirty fix for exchange rates 2021-10-22 11:00:15 +01:00
benarc
a6de60aab7 Fixed exchagerates. I think 2021-10-22 09:41:06 +01:00
Stefan Stammberger
d9849d43d2
refactor: replace Trio with asyncio/uvloop 2021-08-30 19:55:02 +02:00
fiatjaf
688149fade add trio typing. 2021-06-20 21:17:32 -03:00
fiatjaf
42bd5ea989 remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
fiatjaf
adc3e62573 abstract exchange rates code into a "util". 2021-03-14 20:43:39 -03:00