From c2e68881d9556e420764ad01b9cf110727c3e94e Mon Sep 17 00:00:00 2001 From: pi3c Date: Wed, 25 Oct 2023 08:54:57 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BB?= =?UTF-8?q?=D0=B8=D1=88=D0=BD=D0=B8=D0=B5=20=D0=B8=D0=BC=D0=BF=D0=BE=D1=80?= =?UTF-8?q?=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproger/blog/urls.py | 12 ++++++++---- pyproger/dbase/models.py | 2 -- pyproger/robots/urls.py | 1 - pyproger/templates/admin/edit.html | 8 ++++---- pyproger/translations/translation.py | 2 -- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/pyproger/blog/urls.py b/pyproger/blog/urls.py index 8b70ae7..cb847b5 100644 --- a/pyproger/blog/urls.py +++ b/pyproger/blog/urls.py @@ -1,11 +1,15 @@ import locale import re -from flask import (abort, current_app, redirect, render_template, request, - url_for) +from flask import abort, current_app, render_template -from ..dbase.database import (get_all_posts_by_tag, get_page, - get_paginated_posts, get_post, get_tags) +from ..dbase.database import ( + get_all_posts_by_tag, + get_page, + get_paginated_posts, + get_post, + get_tags, +) from .blog import bp locale.setlocale(locale.LC_ALL, ("ru", "utf-8")) diff --git a/pyproger/dbase/models.py b/pyproger/dbase/models.py index 5130a85..22bc062 100644 --- a/pyproger/dbase/models.py +++ b/pyproger/dbase/models.py @@ -1,5 +1,3 @@ -import datetime - from flask_security.models import fsqla from sqlalchemy import Boolean, Column, DateTime, Integer, String, Text from sqlalchemy.sql import func diff --git a/pyproger/robots/urls.py b/pyproger/robots/urls.py index 89e8084..28cfd3f 100644 --- a/pyproger/robots/urls.py +++ b/pyproger/robots/urls.py @@ -1,5 +1,4 @@ from flask import make_response, render_template -from sqlalchemy.sql import func from pyproger.dbase.database import get_posts_for_sitemap diff --git a/pyproger/templates/admin/edit.html b/pyproger/templates/admin/edit.html index d588766..662a496 100644 --- a/pyproger/templates/admin/edit.html +++ b/pyproger/templates/admin/edit.html @@ -1,9 +1,9 @@ {% extends 'admin/model/edit.html' %} {% block head %} -{{ super()}} -{{ ckeditor.load_code_theme() }} -{%endblock%} + {{ super()}} + {{ ckeditor.load_code_theme() }} +{% endblock head %} {% block tail %} {{ super() }} @@ -11,4 +11,4 @@ {{ ckeditor.config(name='title')}} {{ ckeditor.config(name='description')}} {{ ckeditor.config(name='text', height=700)}} -{% endblock %} +{% endblock tail %} diff --git a/pyproger/translations/translation.py b/pyproger/translations/translation.py index f9c1baf..60e07e2 100644 --- a/pyproger/translations/translation.py +++ b/pyproger/translations/translation.py @@ -1,5 +1,3 @@ -import os - from flask import Blueprint, current_app, request from flask_babel import Babel