изменено отображение эмоций
This commit is contained in:
parent
febf793f5d
commit
0b79a872d9
29
main.log
29
main.log
@ -0,0 +1,29 @@
|
||||
ERROR:main:Exception on /diary [GET]
|
||||
Traceback (most recent call last):
|
||||
File "D:\Moona\venv\lib\site-packages\flask\app.py", line 2077, in wsgi_app
|
||||
response = self.full_dispatch_request()
|
||||
File "D:\Moona\venv\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request
|
||||
rv = self.handle_user_exception(e)
|
||||
File "D:\Moona\venv\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request
|
||||
rv = self.dispatch_request()
|
||||
File "D:\Moona\venv\lib\site-packages\flask\app.py", line 1509, in dispatch_request
|
||||
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
|
||||
File "D:/Moona/main.py", line 700, in diary
|
||||
return render_template('diary.html', title='Äíåâíèê', my_post=posts, message='', question=post_quest,
|
||||
File "D:\Moona\venv\lib\site-packages\flask\templating.py", line 149, in render_template
|
||||
ctx.app.jinja_env.get_or_select_template(template_name_or_list),
|
||||
File "D:\Moona\venv\lib\site-packages\jinja2\environment.py", line 1071, in get_or_select_template
|
||||
return self.get_template(template_name_or_list, parent, globals)
|
||||
File "D:\Moona\venv\lib\site-packages\jinja2\environment.py", line 1000, in get_template
|
||||
return self._load_template(name, globals)
|
||||
File "D:\Moona\venv\lib\site-packages\jinja2\environment.py", line 959, in _load_template
|
||||
template = self.loader.load(self, name, self.make_globals(globals))
|
||||
File "D:\Moona\venv\lib\site-packages\jinja2\loaders.py", line 138, in load
|
||||
code = environment.compile(source, name, filename)
|
||||
File "D:\Moona\venv\lib\site-packages\jinja2\environment.py", line 758, in compile
|
||||
self.handle_exception(source=source_hint)
|
||||
File "D:\Moona\venv\lib\site-packages\jinja2\environment.py", line 926, in handle_exception
|
||||
raise rewrite_traceback_stack(source=source)
|
||||
File "D:\Moona\templates\diary.html", line 157, in template
|
||||
{% endfor %}
|
||||
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'endfor'. You probably made a nesting mistake. Jinja is expecting this tag, but currently looking for 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.
|
||||
@ -33,8 +33,8 @@
|
||||
<strong class="emot_block">Позитивные эмоции</strong>
|
||||
</summary>
|
||||
{% for item2 in emotion_pub[loop.index0]['pos_emot'] %}
|
||||
<strong class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -47,8 +47,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_pub[loop.index0]['nig_emot'] %}
|
||||
<strong class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -66,8 +66,8 @@
|
||||
</summary>
|
||||
{% for item2 in emotion_pub[loop.index0]['link'] %}
|
||||
<div class="link">
|
||||
<a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a>
|
||||
<p><a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a></p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</details>
|
||||
@ -139,14 +139,10 @@
|
||||
<summary class="emot_block">
|
||||
<strong class="emot_block">Позитивные эмоции</strong>
|
||||
</summary>
|
||||
<ul style="list-style-type: none">
|
||||
{% for item2 in emotion[loop.index0]['pos_emot'] %}
|
||||
<li>
|
||||
<div class="emot"><strong class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong></div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% for item2 in emotion_pub[loop.index0]['pos_emot'] %}
|
||||
<p class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
{% endif %}
|
||||
@ -156,14 +152,10 @@
|
||||
<summary class="emot_block">
|
||||
<strong class="emot_block">Негативные эмоции</strong>
|
||||
</summary>
|
||||
<ul style="list-style-type: none">
|
||||
{% for item2 in emotion[loop.index0]['nig_emot'] %}
|
||||
<li>
|
||||
<div class="emot"><strong class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong></div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% for item2 in emotion_pub[loop.index0]['nig_emot'] %}
|
||||
<p class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
{% endif %}
|
||||
@ -180,8 +172,8 @@
|
||||
</summary>
|
||||
{% for item2 in emotion[loop.index0]['link'] %}
|
||||
<div class="link">
|
||||
<a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a>
|
||||
<p><a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a></p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</details>
|
||||
|
||||
@ -66,8 +66,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_for_you[loop.index0]['pos_emot'] %}
|
||||
<strong class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -81,8 +81,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_for_you[loop.index0]['nig_emot'] %}
|
||||
<strong class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -119,8 +119,8 @@
|
||||
<p></p>
|
||||
{% for item2 in emotion_for_you[loop.index0]['link'] %}
|
||||
<div class="link">
|
||||
<a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a>
|
||||
<p><a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a></p>
|
||||
</div>
|
||||
<p></p>
|
||||
{% endfor %}
|
||||
@ -173,8 +173,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_you_like_that[loop.index0]['pos_emot'] %}
|
||||
<strong class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -188,8 +188,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_you_like_that[loop.index0]['nig_emot'] %}
|
||||
<strong class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -226,8 +226,8 @@
|
||||
<p></p>
|
||||
{% for item2 in emotion_you_like_that[loop.index0]['link'] %}
|
||||
<div class="link">
|
||||
<a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a>
|
||||
<p><a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a></p>
|
||||
</div>
|
||||
<p></p>
|
||||
{% endfor %}
|
||||
|
||||
@ -42,8 +42,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_pop[loop.index0]['pos_emot'] %}
|
||||
<strong class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -57,8 +57,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_pop[loop.index0]['nig_emot'] %}
|
||||
<strong class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -95,8 +95,8 @@
|
||||
<p></p>
|
||||
{% for item2 in emotion_pop[loop.index0]['link'] %}
|
||||
<div class="link">
|
||||
<a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a>
|
||||
<p><a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a></p>
|
||||
</div>
|
||||
<p></p>
|
||||
{% endfor %}
|
||||
@ -151,8 +151,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_fresh[loop.index0]['pos_emot'] %}
|
||||
<strong class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -166,8 +166,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_fresh[loop.index0]['nig_emot'] %}
|
||||
<strong class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -204,8 +204,8 @@
|
||||
<p></p>
|
||||
{% for item2 in emotion_fresh[loop.index0]['link'] %}
|
||||
<div class="link">
|
||||
<a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a>
|
||||
<p><a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a></p>
|
||||
</div>
|
||||
<p></p>
|
||||
{% endfor %}
|
||||
@ -259,8 +259,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_for_you[loop.index0]['pos_emot'] %}
|
||||
<strong class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-success" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -274,8 +274,8 @@
|
||||
</summary>
|
||||
<p></p>
|
||||
{% for item2 in emotion_for_you[loop.index0]['nig_emot'] %}
|
||||
<strong class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</strong>
|
||||
<p class="alert alert-danger" role="alert"
|
||||
style="border-radius: 22px;">{{item2}}</p>
|
||||
{% endfor %}
|
||||
</details>
|
||||
</div>
|
||||
@ -312,8 +312,8 @@
|
||||
<p></p>
|
||||
{% for item2 in emotion_for_you[loop.index0]['link'] %}
|
||||
<div class="link">
|
||||
<a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px;">Ссылка
|
||||
{{ loop.index }}</a>
|
||||
<p><a class="alert alert-light" role="alert" href="{{ item2 }}" style="border-radius: 22px; margin: 5%">Ссылка
|
||||
{{ loop.index }}</a></p>
|
||||
</div>
|
||||
<p></p>
|
||||
{% endfor %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user