This commit is contained in:
parent
eb5697a6c9
commit
c5e74bd22c
2 changed files with 4 additions and 3 deletions
|
@ -21,7 +21,7 @@ def read(file: int) -> str:
|
||||||
read_page=True,
|
read_page=True,
|
||||||
page_name=name,
|
page_name=name,
|
||||||
name=f"{file}.txt",
|
name=f"{file}.txt",
|
||||||
file=post.content if post else None,
|
file=post.content.split("\n") if post else None,
|
||||||
post_file_id=post_file_id,
|
post_file_id=post_file_id,
|
||||||
date=post.creation_date if post else None,
|
date=post.creation_date if post else None,
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,8 +10,9 @@
|
||||||
{% if file %}
|
{% if file %}
|
||||||
<h3>{{ name }}</h3>
|
<h3>{{ name }}</h3>
|
||||||
|
|
||||||
<p>{{ file }}</p>
|
{% for para in file %}
|
||||||
{% else %}
|
<p>{{para}}</p>
|
||||||
|
{% endfor %} {% else %}
|
||||||
<p>{{ name }} doesn't exists</p>
|
<p>{{ name }} doesn't exists</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in a new issue