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,
|
||||
page_name=name,
|
||||
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,
|
||||
date=post.creation_date if post else None,
|
||||
)
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
{% if file %}
|
||||
<h3>{{ name }}</h3>
|
||||
|
||||
<p>{{ file }}</p>
|
||||
{% else %}
|
||||
{% for para in file %}
|
||||
<p>{{para}}</p>
|
||||
{% endfor %} {% else %}
|
||||
<p>{{ name }} doesn't exists</p>
|
||||
{% endif %}
|
||||
</main>
|
||||
|
|
Loading…
Reference in a new issue