Code stats sus fix
This commit is contained in:
parent
489d3b54eb
commit
c740fcde52
4 changed files with 9 additions and 4 deletions
|
@ -4,7 +4,7 @@ from pydantic import BaseSettings
|
|||
|
||||
class Config(BaseSettings):
|
||||
host: str = '127.0.0.1'
|
||||
port: int = 80
|
||||
port: int = 2344
|
||||
birthdate: date = date(2007, 10, 13)
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
import logging
|
||||
import requests
|
||||
from app.models import Project
|
||||
from requests import RequestException
|
||||
|
||||
from app.utils import declension
|
||||
|
||||
|
||||
class DataGetter:
|
||||
code_stats = {}
|
||||
|
@ -38,8 +42,8 @@ class DataGetter:
|
|||
for el in resp['data']['languages']:
|
||||
hours = el['hours']
|
||||
minutes = el['minutes']
|
||||
|
||||
code_stats[el['name']] = ''
|
||||
|
||||
if hours > 0:
|
||||
code_stats[el['name']] = declension(hours, 'час', 'часа', 'часов') + ' '
|
||||
if minutes > 0:
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
[tool.poetry]
|
||||
name = "app"
|
||||
name = "backend"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Mootfrost777 <andrey13102007@gmail.com>"]
|
||||
readme = "README.md"
|
||||
packages = [{include = "app"}]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
|
|
@ -7,7 +7,7 @@ RUN yarn
|
|||
COPY . .
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
FROM nginx:stable-alpine as
|
||||
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue