Corpus List update

This commit is contained in:
Inga Kirschnick
2023-06-06 15:39:47 +02:00
parent 59950aba5b
commit 4c277cd685
9 changed files with 142 additions and 51 deletions

View File

@ -127,7 +127,7 @@ followedCorpusList.add(
[
{% for corpus in user.followed_corpora %}
{% if (corpus.is_public or corpus.user == current_user or user == current_user or current_user.is_following_corpus(corpus)) %}
{{ corpus.to_json_serializeable(backrefs=True)|tojson }},
{{ corpus.to_json_serializeable(backrefs=True, relationships=True)|tojson }},
{% endif %}
{% endfor %}
]
@ -137,7 +137,7 @@ publicCorpusList.add(
[
{% for corpus in user.corpora %}
{% if corpus.is_public %}
{{ corpus.to_json_serializeable(backrefs=True)|tojson }},
{{ corpus.to_json_serializeable(backrefs=True, relationships=True)|tojson }},
{% endif %}
{% endfor %}
]