ring fix
All checks were successful
Deploy website / deploy (push) Successful in 1m8s

This commit is contained in:
2026-03-08 23:27:30 +00:00
parent 8e67e714d0
commit 8dae4c1b5d
4 changed files with 176 additions and 4 deletions

18
src/blog.py Normal file
View File

@@ -0,0 +1,18 @@
from os import getenv as env
import psycopg2, logging
log = logging.getLogger("blog")
log.info("connecting to database")
conn = psycopg2.connect(
host = env("PG_HOST"),
port = env("PG_PORT"),
dbname = env("PG_DBNAME"),
user= env("PG_USER"),
password = env("PG_PASSWORD")
)
cursor = conn.cursor()