Skip to content

Commit

Permalink
fix: input cursor ref without connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed Jan 11, 2019
1 parent bfb3bb0 commit 6b01fc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lbsntransform/__main__.py
Expand Up @@ -54,8 +54,7 @@ def main():
loc_filelist = LoadData.read_local_files(config)
else:
# establish input connection
db_input = LoadData.initialize_input_connection(config)
cursor_input = db_input[1]
cursor_input = LoadData.initialize_input_connection(config)

# start settings
processed_records = 0
Expand Down
2 changes: 1 addition & 1 deletion lbsntransform/classes/load_data.py
Expand Up @@ -182,7 +182,7 @@ def initialize_input_connection(cfg):
cfg.dbpassword_input,
True # ReadOnly Mode
)
cursor_input = input_connection.connect()
conn_input, cursor_input = input_connection.connect()
return cursor_input

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion lbsntransform/classes/store_csv.py
Expand Up @@ -119,7 +119,7 @@ def clean_csv_batches(self, batched_records):
self.sort_files(filelist)
if len(filelist) > 1:
print(
f'Cleaning & merging output files..{x}'
f'Cleaning & merging output files..{x_cnt}'
f'/{len(batched_records)}', end='\r')
self.merge_files(filelist, type_name)
else:
Expand Down

0 comments on commit 6b01fc5

Please sign in to comment.