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" />
|
||||
<span class="flex align-baseline gap-1" v-else>
|
||||
<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>
|
||||
</template>
|
||||
|
|
13
main.py
13
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")
|
||||
|
|
Loading…
Reference in New Issue