diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-24 11:23:24 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-24 11:23:24 +0100 |
commit | bd7ba362442f27fe3f53729a0040f2473b85a068 (patch) | |
tree | e9c4257f26254656333a16bec1a14ba86555b5e7 | |
parent | ec89494c4a4272c11af5f94ba4a8d77133d4678f (diff) | |
download | Trader-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.py | 4 |
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 | |||
6 | import psycopg2 | 6 | import psycopg2 |
7 | 7 | ||
8 | sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | 8 | sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
9 | from main import parse_config | 9 | from helper import main_parse_config |
10 | 10 | ||
11 | config = sys.argv[1] | 11 | config = sys.argv[1] |
12 | reports = sys.argv[2:] | 12 | reports = sys.argv[2:] |
13 | 13 | ||
14 | pg_config, report_path = parse_config(config) | 14 | pg_config, report_path = main_parse_config(config) |
15 | 15 | ||
16 | connection = psycopg2.connect(**pg_config) | 16 | connection = psycopg2.connect(**pg_config) |
17 | cursor = connection.cursor() | 17 | cursor = connection.cursor() |