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

@ -123,8 +123,7 @@ let followedCorpusList = new FollowedCorpusList(document.querySelector('.followe
followedCorpusList.add(
[
{% for corpus in user.followed_corpora %}
{{ corpus.to_json_serializeable()|tojson }}
{% if not loop.last %},{% endif %}
{{ corpus.to_json_serializeable()|tojson }},
{% endfor %}
]
);
@ -132,8 +131,7 @@ let publicCorpusList = new PublicCorpusList(document.querySelector('.public-corp
publicCorpusList.add(
[
{% for corpus in user.corpora if corpus.is_public %}
{{ corpus.to_json_serializeable()|tojson }}
{% if not loop.last %},{% endif %}
{{ corpus.to_json_serializeable()|tojson }},
{% endfor %}
]
);