fix int type by changing the order
This commit is contained in:
parent
7667c2f531
commit
36cb1eb47b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue