Splitpayments: floating point percentage for split value (#690)

* allow for float in model

* recreate DB with float type

* remove rounding in UI

* black

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
Tiago Vasconcelos
2022-07-17 20:00:06 +02:00
committed by GitHub
co-authored by callebtc
parent 2b827d37fa
commit c8ab2859fd
4 changed files with 47 additions and 9 deletions
+2 -2
View File
@@ -7,14 +7,14 @@ from pydantic import BaseModel
class Target(BaseModel):
wallet: str
source: str
percent: int
percent: float
alias: Optional[str]
class TargetPutList(BaseModel):
wallet: str = Query(...)
alias: str = Query("")
percent: int = Query(..., ge=1)
percent: float = Query(..., ge=0.01)
class TargetPut(BaseModel):