mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] adapt logs format to stupid mustache
This commit is contained in:
parent
804b6ee962
commit
41aef0f2d6
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ def journals_display(file_name):
|
|||
|
||||
infos, logs = content.split("\n---\n", 1)
|
||||
infos = yaml.safe_load(infos)
|
||||
logs = [x.split(": ", 1) for x in logs.split("\n") if x]
|
||||
logs = [{"datetime": x.split(": ", 1)[0].replace("_", " "), "line": x.split(": ", 1)[1]} for x in logs.split("\n") if x]
|
||||
|
||||
return {
|
||||
"started_at": journal_datetime,
|
||||
|
|
Loading…
Add table
Reference in a new issue