diff --git a/api.py b/api.py index 73e720a..e470064 100644 --- a/api.py +++ b/api.py @@ -1,5 +1,6 @@ from fastapi import FastAPI, HTTPException from pydantic import BaseModel +from typing import Optional from datetime import datetime, timedelta from statistics import median from uuid import uuid4 @@ -449,8 +450,6 @@ def get_time(it: Get_time2cdm): else: return 'Error' -from typing import Optional - class Get_stat(BaseModel): token: str date: Optional[str] = datetime.today().strftime('%Y-%m-%d') diff --git a/user_api.py b/user_api.py index 18f22bb..6e6613b 100644 --- a/user_api.py +++ b/user_api.py @@ -5,7 +5,7 @@ from time import time # Отключение логирования для уменьшения нагрузки import logging -#logging.disable(logging.CRITICAL) +logging.disable(logging.CRITICAL) # Fix 3.3 + 0.15 = 3.4499999999999997 from decimal import Decimal as d