mirror of
https://github.com/Redume/Shirino.git
synced 2025-04-02 18:57:34 +03:00
fix: fix path for config
This commit is contained in:
parent
cc916c172a
commit
f57dfd4762
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ import yaml
|
||||||
|
|
||||||
from utils.format_number import format_number
|
from utils.format_number import format_number
|
||||||
|
|
||||||
config = yaml.safe_load(open('config.yaml', 'r', encoding='utf-8'))
|
config = yaml.safe_load(open('../config.yaml', 'r', encoding='utf-8'))
|
||||||
|
|
||||||
class Converter:
|
class Converter:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -3,7 +3,7 @@ from http import HTTPStatus
|
||||||
import yaml
|
import yaml
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
|
||||||
config = yaml.safe_load(open('config.yaml', 'r', encoding='utf-8'))
|
config = yaml.safe_load(open('../config.yaml', 'r', encoding='utf-8'))
|
||||||
|
|
||||||
async def create_chart(from_currency: str, conv_currency: str) -> (dict, None):
|
async def create_chart(from_currency: str, conv_currency: str) -> (dict, None):
|
||||||
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=3)) as session:
|
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=3)) as session:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue