removed comments
This commit is contained in:
parent
4f1766f8ec
commit
47ac25fdf6
25 changed files with 2 additions and 6 deletions
1
backend/.gitignore
vendored
1
backend/.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
.venv/lib/**
|
.venv/lib/**
|
||||||
.venv/lib64/*
|
.venv/lib64/*
|
||||||
*.db
|
*.db
|
||||||
|
*.pyc
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -31,7 +31,6 @@ class AdminApprovalData(ArticleData):
|
||||||
|
|
||||||
|
|
||||||
def create_html_from_template(template_name: str, data):
|
def create_html_from_template(template_name: str, data):
|
||||||
print(f"APP_ROOT: {APP_ROOT}")
|
|
||||||
env = Environment(loader = FileSystemLoader(f'{APP_ROOT}/internal/jinja_templates'))
|
env = Environment(loader = FileSystemLoader(f'{APP_ROOT}/internal/jinja_templates'))
|
||||||
template = env.get_template(f"{template_name}.jinja")
|
template = env.get_template(f"{template_name}.jinja")
|
||||||
return template.render(data=data)
|
return template.render(data=data)
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,6 @@ from fastapi import FastAPI
|
||||||
from fastapi_crons import Crons
|
from fastapi_crons import Crons
|
||||||
from backend.internal.rss_reader import check_blog_rss_and_send_admin_mail
|
from backend.internal.rss_reader import check_blog_rss_and_send_admin_mail
|
||||||
|
|
||||||
|
|
||||||
# TODO: TLS
|
|
||||||
# TODO: Deploy
|
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
crons = Crons(app)
|
crons = Crons(app)
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue