mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] convert string into date object for frontend
This commit is contained in:
parent
d66403936a
commit
b8777013d4
1 changed files with 3 additions and 3 deletions
6
run.py
6
run.py
|
@ -507,9 +507,9 @@ async def ws_apps(request, websocket):
|
|||
"job_name": x.job_name,
|
||||
"job_state": x.job_state,
|
||||
"log": x.log,
|
||||
"created_time": x.created_time,
|
||||
"started_time": x.started_time,
|
||||
"end_time": x.end_time,
|
||||
"created_time": datetime.strptime(x.created_time.split(".")[0], '%Y-%m-%d %H:%M:%S') if x.created_time else None,
|
||||
"started_time": datetime.strptime(x.started_time.split(".")[0], '%Y-%m-%d %H:%M:%S') if x.started_time else None,
|
||||
"end_time": datetime.strptime(x.end_time.split(".")[0], '%Y-%m-%d %H:%M:%S') if x.end_time else None,
|
||||
} for x in repos
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue