aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-24 11:23:24 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-24 11:23:24 +0100
commitbd7ba362442f27fe3f53729a0040f2473b85a068 (patch)
treee9c4257f26254656333a16bec1a14ba86555b5e7
parentec89494c4a4272c11af5f94ba4a8d77133d4678f (diff)
downloadTrader-bd7ba362442f27fe3f53729a0040f2473b85a068.tar.gz
Trader-bd7ba362442f27fe3f53729a0040f2473b85a068.tar.zst
Trader-bd7ba362442f27fe3f53729a0040f2473b85a068.zip
Backport report migration to databasev0.6.0
-rw-r--r--tasks/import_reports_to_database.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/import_reports_to_database.py b/tasks/import_reports_to_database.py
index 6031cbe..56aefa5 100644
--- a/tasks/import_reports_to_database.py
+++ b/tasks/import_reports_to_database.py
@@ -6,12 +6,12 @@ from decimal import Decimal as D
6import psycopg2 6import psycopg2
7 7
8sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 8sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
9from main import parse_config 9from helper import main_parse_config
10 10
11config = sys.argv[1] 11config = sys.argv[1]
12reports = sys.argv[2:] 12reports = sys.argv[2:]
13 13
14pg_config, report_path = parse_config(config) 14pg_config, report_path = main_parse_config(config)
15 15
16connection = psycopg2.connect(**pg_config) 16connection = psycopg2.connect(**pg_config)
17cursor = connection.cursor() 17cursor = connection.cursor()