time fix
Deploy / build_and_push_images (push) Successful in 1m33s Details
Deploy / deploy_to_server (push) Successful in 24s Details

This commit is contained in:
Kseninia Mikhaylova 2024-05-21 14:00:32 +03:00
parent 52f218bb2b
commit 739f551d74
2 changed files with 2 additions and 13 deletions

View File

@ -26,7 +26,7 @@ const { data, pending, error, status } = await useLazyFetch<APIBody>(`${config.p
<UIcon name="i-heroicons-check-circle" class="text-green-500 text-xl" v-if="row.last_online == -1" /> <UIcon name="i-heroicons-check-circle" class="text-green-500 text-xl" v-if="row.last_online == -1" />
<span class="flex align-baseline gap-1" v-else> <span class="flex align-baseline gap-1" v-else>
<UIcon name="i-heroicons-x-circle" class="text-red-500 text-xl" /> <UIcon name="i-heroicons-x-circle" class="text-red-500 text-xl" />
{{ new Date(row.last_online).toLocaleTimeString('ru-RU') }} {{ new Date(row.last_online * 1000).toLocaleTimeString('ru-RU') }}
</span> </span>
</span> </span>
</template> </template>

13
main.py
View File

@ -129,18 +129,7 @@ async def get_bx_users():
except Exception as e: except Exception as e:
logger.error(e) logger.error(e)
raise HTTPException(status_code=500, detail=str(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") app = FastAPI(title="main app")