mirror of
https://github.com/Redume/Shirino.git
synced 2025-02-04 09:58:57 +03:00
fix: replace , to .
This commit is contained in:
parent
e54e70ed49
commit
b7396d4634
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -15,7 +15,7 @@ config = yaml.safe_load(open('config.yaml'))
|
||||||
|
|
||||||
@dp.inline_query()
|
@dp.inline_query()
|
||||||
async def currency(query: types.InlineQuery) -> None:
|
async def currency(query: types.InlineQuery) -> None:
|
||||||
global result, from_currency, conv_currency
|
global from_currency, conv_currency
|
||||||
|
|
||||||
try:
|
try:
|
||||||
text = query.query.lower()
|
text = query.query.lower()
|
||||||
|
@ -33,7 +33,7 @@ async def currency(query: types.InlineQuery) -> None:
|
||||||
query)
|
query)
|
||||||
|
|
||||||
if len(args) == 3:
|
if len(args) == 3:
|
||||||
conv.amount = float(args[0])
|
conv.amount = float(args[0].replace(',', '.'))
|
||||||
from_currency = args[1]
|
from_currency = args[1]
|
||||||
conv_currency = args[2]
|
conv_currency = args[2]
|
||||||
elif len(args) == 2:
|
elif len(args) == 2:
|
||||||
|
|
Loading…
Add table
Reference in a new issue