From eab8670780aa0c75c142fb6554fd809fe7a1c6a5 Mon Sep 17 00:00:00 2001
From: minhtrannhat
Date: Fri, 14 Jul 2023 15:58:58 -0400
Subject: [PATCH] Fix(backend): Updated Github CI
---
.github/workflows/ci.yml | 2 +-
backend/src/backend/run.py | 2 +-
backend/src/backend/templates/email.html | 74 ++++++++++--------------
3 files changed, 33 insertions(+), 45 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b4196a8..877c6f8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,7 +2,7 @@ name: CI
on:
push:
- branches: [master]
+ branches: [backend, frontend]
pull_request:
branches: [master]
workflow_dispatch:
diff --git a/backend/src/backend/run.py b/backend/src/backend/run.py
index 527b914..96e8340 100644
--- a/backend/src/backend/run.py
+++ b/backend/src/backend/run.py
@@ -109,7 +109,7 @@ def recreate_db() -> None:
f"CREATE DATABASE {db_url.path.removeprefix('/')}",
],
)
- call(
+ call( # nosec
[
"psql",
"-U",
diff --git a/backend/src/backend/templates/email.html b/backend/src/backend/templates/email.html
index 4a53a26..b6427b1 100644
--- a/backend/src/backend/templates/email.html
+++ b/backend/src/backend/templates/email.html
@@ -1,51 +1,39 @@
-
- Todo - email
-
-
-
-
+
+
+
+
-
-
-
-
-
-
- {% block welcome %} Hello, {% endblock %}
- |
-
-
-
- {% block content %} Example content {% endblock %}
- |
-
-
- The Todo team |
-
-
- |
-
-
-
+ ">
+
+
+
+
+
+
+ {% block welcome %} Hello, {% endblock %}
+ |
+
+
+
+ {% block content %} Example content {% endblock %}
+ |
+
+
+ The Todo team |
+
+
+ |
+
+
+
+