From 188047e1b6731ed2b6089243f11c2625c34050f6909113c02584041c6f9ae960 Mon Sep 17 00:00:00 2001 From: vladislav Date: Mon, 17 Aug 2026 03:33:47 -0400 Subject: [PATCH] hore --- build.ipynb | 3 ++- email_task.py | 1 + main.py | 13 +------------ tasks.py | 1 + tg.py | 1 + vk.py | 1 + 6 files changed, 7 insertions(+), 13 deletions(-) diff --git a/build.ipynb b/build.ipynb index c65e17b..e0e2d37 100644 --- a/build.ipynb +++ b/build.ipynb @@ -229,7 +229,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "2809c42c", "metadata": {}, "outputs": [], @@ -254,6 +254,7 @@ " app.append(''.join(cell['source']))\n", "\n", " with open(f'{filename_without_extension}.py', 'w') as f:\n", + " f.write(f\"# `{filename_without_extension}.py` generate from `{filename_without_extension}.ipynb` by `build.ipynb` \\n\")\n", " f.write('\\n\\n'.join(app))\n", "\n", "build()" diff --git a/email_task.py b/email_task.py index e4d3c92..2299001 100644 --- a/email_task.py +++ b/email_task.py @@ -1,3 +1,4 @@ +# `email_task.py` generate from `email_task.ipynb` by `build.ipynb` #ignore import os diff --git a/main.py b/main.py index 1f50f5a..3e5ecfb 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +# `main.py` generate from `main.ipynb` by `build.ipynb` # FastAPI ## App @@ -1069,17 +1070,6 @@ async def logout( @app.get("/api/me", response_model=dict) async def get_me(response: Response, current_user: Dict = Security(get_current_user, scopes=["read:self"])): user = display_user(current_user) - refresh_exp = timedelta(days=REFRESH_TOKEN_EXPIRE_DAYS) - if current_user['email'] == 'kultmost@yandex.ru': - response.set_cookie( - domain='.kultmost.ru', - key="token", - value='2124|bhcbiP7XEgSe6ooTAoPf6mklBWNExG6a5CmmwTvTfafc5d5b', - httponly=True, - secure=PROD, - samesite="strict", - max_age=int(refresh_exp.total_seconds()) - ) return bson_clear(user) @@ -3540,7 +3530,6 @@ async def api_exhibition_post_select( return {"ok": True} - @app.get("/profile/partner/exhibition/{exhibition_id}/catalog", response_class=HTMLResponse) async def profile_partner_exhibitions_catalog( request: Request, diff --git a/tasks.py b/tasks.py index 211e064..7d50de1 100644 --- a/tasks.py +++ b/tasks.py @@ -1,3 +1,4 @@ +# `tasks.py` generate from `tasks.ipynb` by `build.ipynb` from config import * from db import * from typing import Dict, Any, List, Optional, Callable, Union diff --git a/tg.py b/tg.py index 8f20dd6..c18369b 100644 --- a/tg.py +++ b/tg.py @@ -1,3 +1,4 @@ +# `tg.py` generate from `tg.ipynb` by `build.ipynb` # TG ## Class diff --git a/vk.py b/vk.py index 4e70fc5..ae9f4b8 100644 --- a/vk.py +++ b/vk.py @@ -1,3 +1,4 @@ +# `vk.py` generate from `vk.ipynb` by `build.ipynb` # VK #ignore