From 0b79a872d9e1e2e6fef7761ac9da5fb0b58c6254 Mon Sep 17 00:00:00 2001 From: Dinosaur <78600651+Darya-Tolmeneva@users.noreply.github.com> Date: Mon, 9 May 2022 13:43:25 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=8D=D0=BC=D0=BE=D1=86=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.log | 29 +++++++++++++++++++++++++++ templates/diary.html | 40 +++++++++++++++---------------------- templates/main.html | 24 +++++++++++----------- templates/publications.html | 36 ++++++++++++++++----------------- 4 files changed, 75 insertions(+), 54 deletions(-) diff --git a/main.log b/main.log index e69de29..c26bef5 100644 --- a/main.log +++ b/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'. diff --git a/templates/diary.html b/templates/diary.html index 4c46d3f..2053956 100644 --- a/templates/diary.html +++ b/templates/diary.html @@ -33,8 +33,8 @@ ΠŸΠΎΠ·ΠΈΡ‚ΠΈΠ²Π½Ρ‹Π΅ эмоции {% for item2 in emotion_pub[loop.index0]['pos_emot'] %} - {{item2}} + {% endfor %} @@ -47,8 +47,8 @@

{% for item2 in emotion_pub[loop.index0]['nig_emot'] %} - {{item2}} + {% endfor %} @@ -66,8 +66,8 @@ {% for item2 in emotion_pub[loop.index0]['link'] %} {% endfor %} @@ -139,14 +139,10 @@ ΠŸΠΎΠ·ΠΈΡ‚ΠΈΠ²Π½Ρ‹Π΅ эмоции - + {% for item2 in emotion_pub[loop.index0]['pos_emot'] %} + + {% endfor %} {% endif %} @@ -156,14 +152,10 @@ НСгативныС эмоции - + {% for item2 in emotion_pub[loop.index0]['nig_emot'] %} + + {% endfor %} {% endif %} @@ -180,8 +172,8 @@ {% for item2 in emotion[loop.index0]['link'] %} {% endfor %} diff --git a/templates/main.html b/templates/main.html index 22be78a..452b6a0 100644 --- a/templates/main.html +++ b/templates/main.html @@ -66,8 +66,8 @@

{% for item2 in emotion_for_you[loop.index0]['pos_emot'] %} - {{item2}} + {% endfor %} @@ -81,8 +81,8 @@

{% for item2 in emotion_for_you[loop.index0]['nig_emot'] %} - {{item2}} + {% endfor %} @@ -119,8 +119,8 @@

{% for item2 in emotion_for_you[loop.index0]['link'] %}

{% endfor %} @@ -173,8 +173,8 @@

{% for item2 in emotion_you_like_that[loop.index0]['pos_emot'] %} - {{item2}} + {% endfor %} @@ -188,8 +188,8 @@

{% for item2 in emotion_you_like_that[loop.index0]['nig_emot'] %} - {{item2}} + {% endfor %} @@ -226,8 +226,8 @@

{% for item2 in emotion_you_like_that[loop.index0]['link'] %}

{% endfor %} diff --git a/templates/publications.html b/templates/publications.html index 8d3f57b..df6f471 100644 --- a/templates/publications.html +++ b/templates/publications.html @@ -42,8 +42,8 @@

{% for item2 in emotion_pop[loop.index0]['pos_emot'] %} - {{item2}} + {% endfor %} @@ -57,8 +57,8 @@

{% for item2 in emotion_pop[loop.index0]['nig_emot'] %} - {{item2}} + {% endfor %} @@ -95,8 +95,8 @@

{% for item2 in emotion_pop[loop.index0]['link'] %}

{% endfor %} @@ -151,8 +151,8 @@

{% for item2 in emotion_fresh[loop.index0]['pos_emot'] %} - {{item2}} + {% endfor %} @@ -166,8 +166,8 @@

{% for item2 in emotion_fresh[loop.index0]['nig_emot'] %} - {{item2}} + {% endfor %} @@ -204,8 +204,8 @@

{% for item2 in emotion_fresh[loop.index0]['link'] %}

{% endfor %} @@ -259,8 +259,8 @@

{% for item2 in emotion_for_you[loop.index0]['pos_emot'] %} - {{item2}} + {% endfor %} @@ -274,8 +274,8 @@

{% for item2 in emotion_for_you[loop.index0]['nig_emot'] %} - {{item2}} + {% endfor %} @@ -312,8 +312,8 @@

{% for item2 in emotion_for_you[loop.index0]['link'] %}

{% endfor %}