Tried to add keyboard shortcuts, it's awful... feat: add terminal window component and about news organization window; update localization for terminal; refactor database connection in hot_articles.py; remove sources.vue

This commit is contained in:
yuanhau 2025-05-13 16:33:06 +08:00
parent 5d77b2770d
commit 4c7f9b47d0
8 changed files with 151 additions and 11 deletions

View file

@ -12,12 +12,12 @@ dotenv.load_dotenv()
# Connect to PostgresDB
#conn = psycopg2.connect(database=os.getenv("POSTGRES_DB"),
# user=os.getenv("POSTGRES_USER"),
# password=os.getenv("POSTGRES_PASSWORD"),
# host=os.getenv("POSTGRES_HOST"),
# port=os.getenv("POSTGRES_PORT")
#)
conn = psycopg2.connect(database=os.getenv("POSTGRES_DB"),
user=os.getenv("POSTGRES_USER"),
password=os.getenv("POSTGRES_PASSWORD"),
host=os.getenv("POSTGRES_HOST"),
port=os.getenv("POSTGRES_PORT")
)
headers = {
'User-Agent': 'NewsSceraperBot/1.0 (https://github.com/hpware/news-analyze)'