mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
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:
parent
5d77b2770d
commit
4c7f9b47d0
8 changed files with 151 additions and 11 deletions
|
@ -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)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue