time fix
This commit is contained in:
parent
52f218bb2b
commit
739f551d74
|
@ -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>
|
||||||
|
|
11
main.py
11
main.py
|
@ -130,17 +130,6 @@ async def get_bx_users():
|
||||||
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")
|
||||||
|
|
Loading…
Reference in New Issue