From 739f551d74a24d7fafbbde89df6e14979a506e55 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Tue, 21 May 2024 14:00:32 +0300 Subject: [PATCH] time fix --- front/pages/vtk/[slug].vue | 2 +- main.py | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/front/pages/vtk/[slug].vue b/front/pages/vtk/[slug].vue index 2bbcf80..c4bbaa7 100644 --- a/front/pages/vtk/[slug].vue +++ b/front/pages/vtk/[slug].vue @@ -26,7 +26,7 @@ const { data, pending, error, status } = await useLazyFetch(`${config.p - {{ new Date(row.last_online).toLocaleTimeString('ru-RU') }} + {{ new Date(row.last_online * 1000).toLocaleTimeString('ru-RU') }} diff --git a/main.py b/main.py index def6a0c..ba2c9cf 100644 --- a/main.py +++ b/main.py @@ -129,18 +129,7 @@ async def get_bx_users(): except Exception as e: logger.error(e) raise HTTPException(status_code=500, detail=str(e)) - -@api_app.get("/bx/test_webhook/{bx_id}") -async def bx_test_webhook(bx_id): - try: - url = f"{BX_API_CALL}task.commentitem.add?taskId=447&fields[POST_MESSAGE]=[USER={bx_id}]Упоминание[/USER]" - res = requests.get(url) - logger.info(url) - data = res.json() - return {"status": "success", "data": data} - except Exception as e: - logger.error(e) - raise HTTPException(status_code=500, detail=str(e)) + app = FastAPI(title="main app")