mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Fix JSON export
This commit is contained in:
parent
6a53da5efd
commit
f4dfecb62f
1 changed files with 1 additions and 2 deletions
|
@ -20,7 +20,7 @@ extension: json
|
||||||
{% block entry %}
|
{% block entry %}
|
||||||
{
|
{
|
||||||
"title": "{{ entry.title }}",
|
"title": "{{ entry.title }}",
|
||||||
"body": "{{ entry.body }}",
|
"body": "{{ entry.body.replace("\n", "\\n") }}",
|
||||||
"date": "{{ entry.date.strftime('%Y-%m-%d') }}",
|
"date": "{{ entry.date.strftime('%Y-%m-%d') }}",
|
||||||
"time": "{{ entry.date.strftime('%H:%M') }}",
|
"time": "{{ entry.date.strftime('%H:%M') }}",
|
||||||
{% if entry.uuid %}
|
{% if entry.uuid %}
|
||||||
|
@ -28,7 +28,6 @@ extension: json
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"starred": {{ "true" if entry.starred else "false" }}
|
"starred": {{ "true" if entry.starred else "false" }}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
Hey There
|
Hey There
|
||||||
|
|
Loading…
Add table
Reference in a new issue