normalize template parameters from database

This commit is contained in:
Patrick Jentsch
2023-03-28 14:11:46 +02:00
parent 09b3afc880
commit b41436c844
10 changed files with 195 additions and 171 deletions

View File

@ -21,8 +21,7 @@
corpusList.add(
[
{% for corpus in corpora %}
{{ corpus.to_json_serializeable(backrefs=True)|tojson }}
{% if not loop.last %},{% endif %}
{{ corpus.to_json_serializeable(backrefs=True)|tojson }},
{% endfor %}
]
);

View File

@ -26,8 +26,7 @@
adminUserList.add(
[
{% for user in users %}
{{ user.to_json_serializeable(backrefs=True)|tojson }}
{% if not loop.last %},{% endif %}
{{ user.to_json_serializeable(backrefs=True)|tojson }},
{% endfor %}
]
);