Commit Graph
41 Commits
Author SHA1 Message Date
dni ⚡ 499cfa002e remove pyproject artifacts
import conv

fix postgres url

fix migration

fixup timestamp postgresql

fixup more timestamp

fix migrations

fix migrations

fix statement

add psycopg2 for conv tests

expiry timestamp

flaku

fix expiry

more wait

parse to int

remove time from filters
2024-09-05 12:38:51 +02:00
dni ⚡ 835f56cee6 async postgres
add timestamp conversation

pending fixed now

statement

repair conv

remove cleandbsetting
2024-09-05 12:38:50 +02:00
dni ⚡andGitHub 98ec59df96 feat: adhere to ruff's B rules (#2423)
* feat: adhere to ruff's `B` rules
last of the ruff checks.
closes #2308
* B904
* B008
* B005
* B025
* cleanup on fake
2024-04-17 13:11:51 +02:00
6d5ad9e229 chore: adhere to ruff's "N" rules (#2377)
* chore: adhere to ruff's "N" rules

WARN: reinstall failing extensions!

bunch of more consistent variable naming. inspired by this issue.
https://github.com/lnbits/lnbits/issues/2308

* fixup! chore: adhere to ruff's "N" rules
* rename to funding_source
* skip jmeter

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-04-15 09:02:21 +02:00
dni ⚡andGitHub e0b7d2f739 chore: adhere to ruff's C (#2379) 2024-04-03 17:56:05 +02:00
dni ⚡andGitHub 884a1b9d6f test: lint tests and tools aswell (#2296)
* test: lint `tests` and `tools` aswell

more linting :)

* fix linting issues in tests and tools

* fixup!

* how is this working?
2024-02-27 13:30:52 +00:00
dni ⚡andGitHub 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 ⚡andGitHub db97ef5543 reintroduce extension migration check (#1490)
* reintroduce extension migration check

* introduce checkversions again and remove extensions from dbversions table
2023-02-14 13:06:01 +01:00
dni ⚡andGitHub 3276347d5d remove all extensions from migration data at once (#1489)
* remove all extnesions from migration data at once

* nerf workflow for now

* check dbversions
2023-02-14 12:42:46 +01:00
Pavol Rusnak 967ce06ca5 fix pylint C0206 (consider-using-dict-items) 2023-01-30 11:46:45 +00:00
Pavol Rusnak 9fa3e5c6cf fix pylint W0102 (dangerous-default-value) 2023-01-30 11:46:43 +00:00
callebtc a1a75ddf0b change sign 2023-01-10 16:25:28 +01:00
callebtc 3f61286cad correct placement of warning 2023-01-10 16:19:56 +01:00
callebtc 64c330459b conv.py: warn if table is empty 2023-01-10 16:16:17 +01:00
Vlad Stan fd111a3150 fix: temp test: folded column names to lowercase 2022-12-12 18:09:26 +02:00
callebtcanddni ⚡ 33eb460d5c restore 7f64f426c2 2022-12-01 12:21:25 +01:00
calleanddni ⚡ 2c562b7053 Revert "Extension: Cashu" 2022-12-01 12:21:25 +01:00
callebtcanddni ⚡ ecec9e9596 consider bool 2022-12-01 12:21:25 +01:00
callebtcanddni ⚡ 23308fe6cf skip dbversions 2022-12-01 12:21:25 +01:00
callebtcanddni ⚡ e12d038e22 pass migrations 2022-12-01 12:21:25 +01:00
callebtcanddni ⚡ c79b121fd2 pass migrations 2022-12-01 12:21:25 +01:00
callebtcanddni ⚡ 074706c422 pass migrations 2022-12-01 12:21:25 +01:00
callebtcanddni ⚡ e3510e5133 check skip 2022-12-01 12:21:25 +01:00
dni ⚡ 74eece78de merge from master 2022-11-24 14:35:32 +01:00
Vlad Stan e667d2dc19 chore: code format 2022-11-17 14:59:03 +02:00
ChuckNorrisonandGitHub 91be3c30b6 add missing import sys
allow to call sys module directly
2022-11-16 14:13:25 +01:00
ChuckNorrisonandGitHub 177446c581 fix sys is not defined 2022-11-08 01:15:54 +01:00
dni ⚡ 36f54ff0c3 formatting and conftest 2022-10-05 13:04:38 +02:00
dni ⚡ ec0375b47c trying to fix tests 2022-10-05 13:04:38 +02:00
d649e6a5c0 fix migrations, add documentation, hopefully fix workflow (#899)
* fix migrations, add documentation, hopefully fix workflow

* renaming to test-migration and add migration

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-17 15:42:01 +02:00
Vlad StanandGitHub 63849a0894 Generalize conv.py (#849)
* feat: generalize the script for  `sqlite` to `postgres`

* fix: revert db connection params

* doc: remove manual conversion docs

* chore: fix formatting

* fix: add back instructions for `mock_data.zip`

* fix: exclude SQLite tables from migration

* fix: rename `your_extension.db` to `your_extension.sqlite3`
2022-08-09 10:45:50 +02:00
ArcandGitHub dc501d3f40 Merge pull request #677 from lnbits/SCRUB
SCRUB extension
2022-07-28 13:29:04 +01:00
callebtc 370a962528 use ours 2022-07-28 14:18:32 +02:00
Vlad Stan c1f6845ad9 feat: update SQLite to Postgre conversion scripts 2022-07-28 15:04:14 +03:00
Tiago vasconcelos 56cac668ca add mock data and fix conv 2022-07-28 11:08:55 +01:00
Tiago vasconcelos 7f8ee461a2 stupid 2022-07-28 10:27:31 +01:00
Tiago vasconcelos d322e6d4dc fix conv typo in scrub schema 2022-07-28 10:24:50 +01:00
Tiago vasconcelos c340a55925 add scrub to conv 2022-07-28 10:00:53 +01:00
calleandGitHub 210edde08a Migration: Fix withdraw (#780) 2022-07-25 15:04:55 +02:00
calleandGitHub 4bb184e08b CI: DB migration with real data (#776)
* fix migration conv.py

* migrate with mock data
2022-07-25 09:13:41 +02:00
calleandGitHub ad2aad05e0 CI: Migration SQLite to PostgreSQL (#719)
* migrate all extensions
* errors if migration is missing
2022-07-17 13:11:13 +02:00