]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Trader.git/commitdiff
Backport report migration to database v0.6.0
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 24 Mar 2018 10:23:24 +0000 (11:23 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 24 Mar 2018 10:23:24 +0000 (11:23 +0100)
tasks/import_reports_to_database.py

index 6031cbe51873993010651e86634a18af386a5576..56aefa5b8d6b8a579ad90fc0331a592092290eb6 100644 (file)
@@ -6,12 +6,12 @@ from decimal import Decimal as D
 import psycopg2
 
 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from main import parse_config
+from helper import main_parse_config
 
 config = sys.argv[1]
 reports = sys.argv[2:]
 
-pg_config, report_path = parse_config(config)
+pg_config, report_path = main_parse_config(config)
 
 connection = psycopg2.connect(**pg_config)
 cursor = connection.cursor()