fix port and db selection

This commit is contained in:
Denis Volkov 2025-03-17 19:27:50 +03:00
parent cf3b82d032
commit 7a9bb5e9fe

View File

@ -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)]