diff --git a/main.py b/main.py index 158af82..9c3a7e1 100644 --- a/main.py +++ b/main.py @@ -139,9 +139,12 @@ class MainWindow(QMainWindow): if __name__ == "__main__": import sys - conn = psycopg2.connect("user=postgres password=456") + conn = psycopg2.connect("user=postgres password=456 host=localhost port=5432") createuUiversityDB(conn) + + conn = psycopg2.connect("user=postgres dbname=university password=456 host=localhost port=5432") + createUsersTable(conn) values = [(1, 'Ivan', 15), (2, 'Igor', 22), (3, 'Alex', 16), (4, 'Anna', 40), (5, 'Inna', 30)]