git / code.ach.gov.ru / gavrin / epbs_loader
commit bdfb93057b665ddd34a30e7bbba3970dac87a0ab
author Дмитрий Сергеевич Гаврин <gavrin_ds@ach.gov.ru>
date 2020-02-10 14:06:00 +0000
parents a5efbd35
message
Update js_pg_loader.py
files
| file | add | del |
|---|---|---|
| js_pg_loader.py | +1 | -1 |
patch
diff --git a/js_pg_loader.py b/js_pg_loader.py
index 174971e77547e30e333f649e8d792e832ce6a9bc..05e0a3fdf92a529ef14d6679bcbbc3612960fec5 100644
--- a/js_pg_loader.py
+++ b/js_pg_loader.py
@@ -5,7 +5,7 @@ import json
import psycopg2 as pg
from psycopg2.extras import execute_values
-dsn = 'postgresql://etl:etl@10.0.0.29/epbs'
+dsn = 'postgresql://etl:etl@localhost/epbs'
TABLE_NAME = 'public.data'
QUERY = 'INSERT INTO {table}(id, body) VALUES %s'.format(table=TABLE_NAME)