Skip to content

Commit

Permalink
Reorganised parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
wleong1 committed Apr 7, 2024
1 parent 038cec6 commit 8e48134
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ def generate_company_list() -> Tuple[list, list]:
:return: (list) A list of companies.
"""
conn = psycopg2.connect(host="172.19.0.2", database="stocks", user="postgres", password="123456", port="5432")
conn = psycopg2.connect(
host="172.19.0.2",
database="stocks",
user="postgres",
password="123456",
port="5432")
cursor = conn.cursor()
cursor.execute("SELECT * FROM companies;")
records = cursor.fetchall()
Expand Down

0 comments on commit 8e48134

Please sign in to comment.