From 4bf9b4fab933d47c45092d9d80db06536fd4a9a6 Mon Sep 17 00:00:00 2001 From: will king Date: Fri, 3 Jun 2022 13:08:50 -0700 Subject: [PATCH] Testing if db_connection will work over tailscale. It does. --- history_downloader/db_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/history_downloader/db_connection.py b/history_downloader/db_connection.py index 29651c8..4b5f94c 100644 --- a/history_downloader/db_connection.py +++ b/history_downloader/db_connection.py @@ -1,10 +1,10 @@ import psycopg2 as psyco -conn = psyco.connect(dbname="aact_db", user="root", host="localhost", password="root") +conn = psyco.connect(dbname="aact_db", user="root", host="will-office", password="root") curse = conn.cursor() -curse.execute("select * FROM http.responses") +curse.execute("select * FROM http.responses LIMIT 100;") print(curse.fetchall()) curse.close()