From 18724c455a53c1f58de6d66a87a01e3b29ee2b0b Mon Sep 17 00:00:00 2001 From: pi3c Date: Mon, 16 Oct 2023 17:01:15 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D1=81=D0=B5?= =?UTF-8?q?=D1=81=D1=81=D0=B8=D0=BE=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproger/blog/urls.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pyproger/blog/urls.py b/pyproger/blog/urls.py index a01ffee..c33a2bd 100644 --- a/pyproger/blog/urls.py +++ b/pyproger/blog/urls.py @@ -1,15 +1,7 @@ import locale import re -from flask import ( - abort, - current_app, - redirect, - render_template, - request, - session, - url_for, -) +from flask import abort, current_app, redirect, render_template, request, url_for from ..dbase.database import ( get_all_posts_by_tag, @@ -26,7 +18,6 @@ locale.setlocale(locale.LC_ALL, "") @bp.route("/", methods=["GET"], defaults={"page": 1}) @bp.route("/") def index(page=1): - session["back_url"] = request.url per_page = current_app.config.get("POSTS_ON_PAGE") posts, total = get_paginated_posts(page, per_page)