mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
fix(chart): Fixed a bug with dependency paths
This commit is contained in:
parent
9db37e8300
commit
872c2836bc
7 changed files with 11 additions and 11 deletions
|
@ -7,7 +7,7 @@ that can be used throughout the application for database operations.
|
||||||
|
|
||||||
import asyncpg
|
import asyncpg
|
||||||
|
|
||||||
from chart.utils.load_config import load_config
|
from utils.load_config import load_config
|
||||||
|
|
||||||
config = load_config('config.yaml')
|
config = load_config('config.yaml')
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ from datetime import datetime
|
||||||
|
|
||||||
from matplotlib import pyplot as plt
|
from matplotlib import pyplot as plt
|
||||||
|
|
||||||
from chart.function.gen_unique_name import generate_unique_name
|
from function.gen_unique_name import generate_unique_name
|
||||||
from ..database.server import create_pool
|
from database.server import create_pool
|
||||||
|
|
||||||
async def create_chart(
|
async def create_chart(
|
||||||
from_currency: str,
|
from_currency: str,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
"""
|
"""
|
||||||
This module provides a function to generate a unique name for chart files.
|
This module provides a function to generate a unique name for src files.
|
||||||
"""
|
"""
|
||||||
import datetime
|
import datetime
|
||||||
import random
|
import random
|
||||||
|
|
|
@ -11,9 +11,9 @@ import uvicorn
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from starlette.staticfiles import StaticFiles
|
from starlette.staticfiles import StaticFiles
|
||||||
|
|
||||||
from chart.middleware.plausible_analytics import PlausibleAnalytics
|
from middleware.plausible_analytics import PlausibleAnalytics
|
||||||
from chart.routes import get_chart, get_chart_period
|
from routes import get_chart, get_chart_period
|
||||||
from chart.utils.load_config import load_config
|
from utils.load_config import load_config
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
config = load_config('config.yaml')
|
config = load_config('config.yaml')
|
||||||
|
|
|
@ -7,7 +7,7 @@ from http import HTTPStatus
|
||||||
import httpx
|
import httpx
|
||||||
from user_agents import parse as ua_parse
|
from user_agents import parse as ua_parse
|
||||||
|
|
||||||
from chart.utils.load_config import load_config
|
from utils.load_config import load_config
|
||||||
|
|
||||||
config = load_config('config.yaml')
|
config = load_config('config.yaml')
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ It defines the `/api/getChart/` endpoint that processes requests for generating
|
||||||
from fastapi import APIRouter, status, Request, Response
|
from fastapi import APIRouter, status, Request, Response
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from chart.function.create_chart import create_chart
|
from function.create_chart import create_chart
|
||||||
from chart.routes.get_chart_period import prepare_chart_response
|
from .get_chart_period import prepare_chart_response
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
from fastapi import APIRouter, status, Request, Response
|
from fastapi import APIRouter, status, Request, Response
|
||||||
|
|
||||||
from chart.function.create_chart import create_chart
|
from function.create_chart import create_chart
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue