forked from justuser-31/CryptoDM
up
This commit is contained in:
@@ -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')
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user