From 33cbeba02b03fe46e76669bf2b76d28f3e4323c5 Mon Sep 17 00:00:00 2001 From: Rayan fernandes <37145078+Rayanfer32@users.noreply.github.com> Date: Sun, 13 Jun 2021 21:48:42 +0530 Subject: [PATCH 01/15] =?UTF-8?q?=F0=9F=99=88=20ignore=20test=20.env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4f3eb8b..e7eafaa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.session -.env +*.env __pycache__/ venv/ tests/ From 42400c0036430e1fadc84142fe2cef6ad6189fc7 Mon Sep 17 00:00:00 2001 From: Rayan fernandes <37145078+Rayanfer32@users.noreply.github.com> Date: Fri, 29 Apr 2022 21:26:30 +0530 Subject: [PATCH 02/15] .venv ignored --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e7eafaa..73a5e33 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ logo/ app.json Procfile .vscode/ -.gitignore \ No newline at end of file +.gitignore +.venv/ \ No newline at end of file From f4bbb44b2c7eecc4f27ff0d32e8e6c1c18d895e7 Mon Sep 17 00:00:00 2001 From: Rayan fernandes <37145078+Rayanfer32@users.noreply.github.com> Date: Fri, 29 Apr 2022 21:39:52 +0530 Subject: [PATCH 03/15] =?UTF-8?q?=F0=9F=90=9B=20fix=20for=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/info_view.py | 4 +++- run.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 run.py diff --git a/app/views/info_view.py b/app/views/info_view.py index 26b8c0a..060b1e6 100644 --- a/app/views/info_view.py +++ b/app/views/info_view.py @@ -5,7 +5,9 @@ from aiohttp import web from telethon.tl import types from telethon.tl.custom import Message -from jinja2 import Markup +from jinja2.utils import markupsafe + +Markup = markupsafe.Markup() from app.util import get_file_name, get_human_size from app.config import block_downloads diff --git a/run.py b/run.py new file mode 100644 index 0000000..fd82900 --- /dev/null +++ b/run.py @@ -0,0 +1,5 @@ +from dotenv import load_dotenv +import runpy +load_dotenv() +runpy.run_module('app') + From b4ed654f24d63d2c66f2cf53c882cfd2805f7db0 Mon Sep 17 00:00:00 2001 From: Rayan fernandes <37145078+Rayanfer32@users.noreply.github.com> Date: Fri, 29 Apr 2022 22:38:32 +0530 Subject: [PATCH 04/15] add eye saving purple theme --- app/templates/header.html | 10 +++++----- app/templates/home.html | 4 ++-- app/templates/index.html | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/templates/header.html b/app/templates/header.html index 1489435..32f6c8c 100644 --- a/app/templates/header.html +++ b/app/templates/header.html @@ -4,7 +4,7 @@
- + @@ -28,13 +28,13 @@ - + -