From fbdf95b66fe8218d77b1a65b812eec0915d535cc Mon Sep 17 00:00:00 2001 From: erjemin Date: Sat, 31 Dec 2022 04:44:38 +0300 Subject: [PATCH] minor --- oknardia/oknardia/urls.py | 2 +- oknardia/web/prices.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oknardia/oknardia/urls.py b/oknardia/oknardia/urls.py index a58569b..c0cb854 100644 --- a/oknardia/oknardia/urls.py +++ b/oknardia/oknardia/urls.py @@ -75,7 +75,7 @@ urlpatterns = [ re_path(r'^tsena-odnogo-okna/(?P\d+)x(?P\d+)mm/tip(?P\d+)[/*]$', prices.report_one_win_price), # --- Ценовая выдача - re_path(r'^(?P\d+)/(?P\d+)/(?P[\s\S]+|.*)[/*]$', prices.report_price), + re_path(r'^(?P\d+)/(?P\d+)/(?P[\s\S]*)$', prices.report_price), # --- Подгружаемый фрейм ценовая выдачи re_path(r'^next_price_frame/idA(?P\d+)MDPO(?P\d+)LON(?P\d+)' r'LAT(?P\d+\.*\d*)N(?P\d+\.*\d*)\S*[/*]$', prices.next_price_frame), diff --git a/oknardia/web/prices.py b/oknardia/web/prices.py index 33699f3..9791de5 100644 --- a/oknardia/web/prices.py +++ b/oknardia/web/prices.py @@ -661,7 +661,7 @@ def report_price(request: HttpRequest, build_id: str = "22427", apart_id: str = last_visit = json.dumps(last_visit[:3]) # упаковываем json без пробелов (три записи) # print u"сейчас запишем вот эту куку:", LastVisit to_template.update({'ticks': float(time.time() - time_start)}) - response = render(request, "report/report_pricelist.html", to_template) + response = render(request, "report/report_price_list.html", to_template) response.set_cookie("LastVisit", last_visit, max_age=7862400) # ставим или перезаписываем куки (91 день) return response @@ -692,4 +692,4 @@ def next_price_frame(request: HttpRequest, apart_id: str = "1", mount_dim_per_o 'ADDRESS_LAT': address_latitude, 'ADDRESS_LON': address_longitude, 'ticks': float(time.time() - time_start)}) - return render(request, "report/report_precelist_frame.html", to_template) + return render(request, "report/report_price_list_frame.html", to_template)