From f76d59cceae417163930dcdd14d4c262940595e5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 1 Dec 2024 20:37:10 +0300 Subject: [PATCH] up --- api.py | 3 +-- user_api.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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