Config refactoring
This commit is contained in:
@@ -5,7 +5,7 @@ import logging
|
||||
import psycopg2
|
||||
from bottle import template
|
||||
|
||||
from aore.config import db_conf
|
||||
from aore.config import DatabaseConfig
|
||||
from aore.dbutils.dbimpl import DBImpl
|
||||
from aore.dbutils.dbschemas import db_shemas
|
||||
from aore.updater.aoxmltableentry import AoXmlTableEntry
|
||||
@@ -13,7 +13,7 @@ from aore.updater.aoxmltableentry import AoXmlTableEntry
|
||||
|
||||
class DbHandler:
|
||||
def __init__(self):
|
||||
self.db = DBImpl(psycopg2, db_conf)
|
||||
self.db = DBImpl(psycopg2, DatabaseConfig)
|
||||
|
||||
def bulk_csv(self, operation_type, table_name, processed_count, csv_file_name):
|
||||
sql_query = None
|
||||
|
||||
Reference in New Issue
Block a user