From 89cf6ccc9133bf027be1c518a4c03a5fc9dd5b01 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 19 Jun 2025 15:18:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E7=BD=AEpsycopg2=20=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mycode/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mycode/main.py b/mycode/main.py index 52a38a6..6649758 100644 --- a/mycode/main.py +++ b/mycode/main.py @@ -120,7 +120,7 @@ def get_cbma_info_from_db_and_ana(year: str = '2023'): df_web = None try: conn_web = psycopg2.connect( - "dbname={} user={} password={} host={} port={}".format('edn_cms', 'auditor', 'Lde78B3_cbma', '10.65.253.10', '54321')) + "dbname={} user={} password={} host={} port={}".format('edn_cms', 'auditor', 'Lde78B3_cbma', '10.65.253.10', '54321'), connect_timeout=2) query_web = f""" SELECT a_outer.id,