normalize template parameters from database

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

No files matched your search

+2 -4
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 %}
]
);