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:
co-authored by
callebtc
parent
2b827d37fa
commit
c8ab2859fd
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user