mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-15 23:31:44 +02:00
fix int type by changing the order
This commit is contained in:
parent
7667c2f531
commit
36cb1eb47b
@ -603,8 +603,8 @@ class ConversionData(BaseModel):
|
||||
async def api_fiat_as_sats(data: ConversionData):
|
||||
output = {}
|
||||
if data.from_ == "sat":
|
||||
output["sats"] = data.amount
|
||||
output["BTC"] = data.amount / 100000000
|
||||
output["sats"] = int(data.amount)
|
||||
for currency in data.to.split(","):
|
||||
output[currency.strip().upper()] = await satoshis_amount_as_fiat(
|
||||
data.amount, currency.strip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user