changes of reports and pmc reports by pankaj-dev

This commit is contained in:
2026-03-23 10:37:48 +05:30
parent 9bc8c1dd90
commit c8d5a9c37d
110 changed files with 20849 additions and 0 deletions

21
v-2/config.py Normal file
View File

@@ -0,0 +1,21 @@
import mysql.connector
import os
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
# Get MySQL credentials from environment variables
MYSQL_HOST = os.getenv("MYSQL_HOST")
MYSQL_USER = os.getenv("MYSQL_USER")
MYSQL_PASSWORD = os.getenv("MYSQL_PASSWORD")
MYSQL_DB = os.getenv("MYSQL_DB")
# Connect to MySQL
def get_db_connection():
return mysql.connector.connect(
host=MYSQL_HOST,
user=MYSQL_USER,
password=MYSQL_PASSWORD,
database=MYSQL_DB
)